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 167379 - Cannot create ColorSelectionDialog
Cannot create ColorSelectionDialog
Status: RESOLVED FIXED
Product: Gazpacho
Classification: Deprecated
Component: widget support
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gazpacho Maintainer(s)
Gazpacho Maintainer(s)
Depends on: 161177
Blocks:
 
 
Reported: 2005-02-14 19:38 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2005-07-18 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johan (not receiving bugmail) Dahlin 2005-02-14 19:38:33 UTC
It is not possible to create a GtkColorSelectionDialog, when you try, the
following traceback will be printed:

Traceback (most recent call last):
  • File "/home/jdahlin/dev/sicem/gazpacho/gazpacho/application.py", line 692 in _palette_button_clicked
    self._command_manager.create(klass, None, self._project)
  • File "/home/jdahlin/dev/sicem/gazpacho/gazpacho/command.py", line 84 in create
    widget = Widget(klass, project, interactive=interactive)
  • File "/home/jdahlin/dev/sicem/gazpacho/gazpacho/widget.py", line 148 in __init__
    widget = klass.type()
TypeError: gtk.ColorSelectionDialog.__init__() takes exactly 1 argument (0 given)

Comment 1 Lorenzo Gil Sanchez 2005-04-06 20:10:20 UTC
The problem is that we can not use gobject.new to create the widgets and this
widget need some parameter in the constructor.

There is a bug for that in pygtk
Comment 2 Johan (not receiving bugmail) Dahlin 2005-07-18 21:53:52 UTC
Fixed on trunk, no work around in pygtk required.