GNOME Bugzilla – Bug 720366
gtk.FileChooserButton crashes on Windows....
Last modified: 2018-08-17 13:41:53 UTC
I don't know if I'm doing this right, but when I run the following code in the Python Fu Console in Gimp 2.8.8 on Windows, and try to choose anything from the dropdown menu, I get an error saying "pythonw.exe has stopped working", and the Window and Python Console crash. The only way around it, is to use Return on the keyboard to select anything from the menu, rather than click it. import gtk window = gtk.Window() dialog = gtk.FileChooserDialog( "Test", None, gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) button = gtk.FileChooserButton(dialog) window.add(button) window.show_all() When I run the gtk.FileChooserDialog, I get the following warnings: C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\python-console.py:1: Warning: Attempt to add property GtkSettings::gtk-can-change-accels after class was initialised #!/usr/bin/env python C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\python-console.py:1: Warning: Attempt to add property GtkSettings::gtk-menu-popup-delay after class was initialised #!/usr/bin/env python C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\python-console.py:1: Warning: Attempt to add property GtkSettings::gtk-menu-popdown-delay after class was initialised #!/usr/bin/env python I mainly use Linux, and when I tried the exact same code there in Gimp 2.8.8, I don't get any warnings, and it actually works like it's supposed to. The difference is that my home folder shows up as a default selection, while on windows it just says (None), though the drop down menu is populated by a few default locations (my home folder, Destkop, C:, etc.).
pygtk is not under active development anymore and had its last code changes in 2013. Its codebase has been archived: https://gitlab.gnome.org/Archive/pygtk/commits/master PyGObject at https://gitlab.gnome.org/GNOME/pygobject is its successor. See https://pygobject.readthedocs.io/en/latest/guide/porting.html for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent version of PyGObject. Thanks!