Hi there.
I do not understand how i can tell a hildon.FileChooserDialog to let the
user select a directory located on a memory card.
Even when i click on the location icon in the filechooserdialog that is
shown on the test case, nothing happens altough i have a memory card
present.
Any idea what i may doing wrong ?
#!/usr/bin/python2.5
import gtk
import hildon
class testcase(hildon.Program):
def __init__(self):
hildon.Program.__init__(self)
self.win=gtk.Window()
self.ok_b=gtk.Button("Click me")
self.ok_b.connect('clicked',self.get_file)
self.win.add(self.ok_b)
self.win.show_all()
gtk.main()
def get_file(self,widget):
print "yo"
selector=hildon.FileChooserDialog(\
self.win,gtk.FILE_CHOOSER_ACTION_CREATE_FOLDER)
rep=selector.run()
selector.hide()
a=selector.get_filename()
if rep==gtk.RESPONSE_OK:
print "new selection=%s"%a
else:
print "no change"
plop=testcase()
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers