After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720366 - gtk.FileChooserButton crashes on Windows....
gtk.FileChooserButton crashes on Windows....
Status: RESOLVED WONTFIX
Product: pygtk
Classification: Bindings
Component: gtk
2.24.x
Other Windows
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2013-12-13 00:31 UTC by Ragnar Brynjúlfsson
Modified: 2018-08-17 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ragnar Brynjúlfsson 2013-12-13 00:31:58 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.).
Comment 1 André Klapper 2018-08-17 13:41:53 UTC
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!