Hi, I've a small problem using a GnomeFileEntry. I would like the file selector to open in a defined directory, and wrote the following snippet:
import pygtk
pygtk.require ('2.0')
import gtk, gnome
from gnome import ui
gnome.init ('Test', '0.0')
d = gtk.Dialog ()
f = ui.FileEntry ('history', 'Test')
f.set_default_path ('/etc')
d.vbox.add (f)
d.show_all ()
gtk.main ()
This works perfectly as soon as some text is available in the Entry
field. However, with an empty Entry, the File Selector opens in the
current directory, which is not what I want... Any hint ? (I cannot
change the current directory, as I use a popup with two FileEntry
widgets that should not refer to the same directory...)
Fr�d�ric
pgp00000.pgp
Description: PGP signature
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
