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 675084 - Pygtkcompat: correct Userlist module use
Pygtkcompat: correct Userlist module use
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-29 16:20 UTC by Jose Rostagno
Modified: 2012-04-30 14:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Pygtkcompat: correct Userlist module use (1.42 KB, text/plain)
2012-04-29 16:20 UTC, Jose Rostagno
Details

Description Jose Rostagno 2012-04-29 16:20:37 UTC
Created attachment 213051 [details]
Pygtkcompat: correct Userlist module use

Using this code on python2:
box = gtk.Box()
box.size_request()

I got this error:

Traceback (most recent call last):
  • File "/home/pepe/emesene/emesene/gui/gtkui/MainMenu.py", line 274 in <lambda>
    lambda *args: self.handler.on_debug_selected())
  • File "/home/pepe/emesene/emesene/gui/base/Handler.py", line 196 in on_debug_selected
    self.debug_window = DebugWindow(debug_close_cb)
  • File "/home/pepe/emesene/emesene/gui/gtkui/DebugWindow.py", line 77 in __init__
    self.set_default_size(*self.view.size_request())
  • File "/usr/lib/python2.7/site-packages/gi/pygtkcompat.py", line 316 in size_request
    return SizeRequest(orig_size_request(widget))
  • File "/usr/lib/python2.7/site-packages/gi/pygtkcompat.py", line 314 in __init__
    UserList.UserList.__init__(self, [self.width,
AttributeError: type object 'UserList' has no attribute 'UserList'

Comment 1 Martin Pitt 2012-04-30 14:00:38 UTC
Thanks! Applied.