I have created my own file chooser window that can select both files and directories. Currently, the "OK" button must be clicked to select anything.
15 lines
281 B
Python
15 lines
281 B
Python
# Bryan Schumake (9/10/2010)
|
|
|
|
import ocarina
|
|
from ocarina import fsselect
|
|
|
|
def callback(uri):
|
|
print uri
|
|
|
|
fsselect.run_chooser2(callback)
|
|
|
|
raw_input(">>>")
|
|
#print chooser
|
|
#chooser = fsselect.make_chooser("Test Chooser", gtk.FILE_CHOOSER_ACTION_OPEN)
|
|
#fsselect.run_chooser(chooser)
|