Hi,

In a callback method, I have this line:

            self.fcd_save.set_filename(self.filename)

'self.fcd_save' is a gtk.FileChooserDialog, 'self.filename' a filename string I got from self.fcd_save.get_filename() earlier.

Now since (Py)GTK 2.10 or so the dialog doesn't work as expected anymore. It is supposed to select and display the filename of the file currently open. When I change the above line to this:

            print self.filename
            print self.fcd_save.set_filename(self.filename)
            print self.fcd_save.get_filename()

I get this tuple every time the callback method is called:

    /home/fr/Software/pygtk-shell/misc/scripts/dbus-service-test.txt
    True
    None

It should actually work like the way <Ctrl><Shift>S works in GEdit, but I'm too lazy to have a look of its code now to see what I'm doing wrong.

Any pointers? Is this a real pygtk regression or am I too lazy to look it up?

The project in question is http://felixrabe.net/pygtk-shell/

Greetings,
Felix
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to