In JES, I am able to use:
file=pickAFile()
In TigerJython, however, I get the following error
NameError: name 'pickAFile' is not defined
What am I doing wrong here?
In JES, I am able to use:
file=pickAFile()
In TigerJython, however, I get the following error
NameError: name 'pickAFile' is not defined
What am I doing wrong here?
Copyright © 2021 Jogjafile Inc.
You are not doing anything wrong at all. The thing is that
pickAFile()is not a standard function in Python. It is actually rather a function that JES has added for convenience, but which you probably will not find it in any other environment.Since TigerJython and JES are both based on Jython, you can easily write a
pickAFile()function on your own that uses Java's Swing. Here is a possible simple implementation (thepickAFile()found in JES might be a bit more complex, but this should get you started):Given that it is certainly a useful function, we might have to consider including it into our next update of TigerJython.
P.S. I would like to apologise for answering so late, I have just joined SO recently and was not aware of your question (I am one of the original authors of TigerJython).