Hello,

when trying to click on a menu item (produced by GtkItemFactory) while
the cursor is in an entry field, I get this error:

Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/gtk.py", line 186, in __call__
    self.cb(action, _obj2inst(widget))
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2330, in _obj2inst
    return _name2cls[objname](_obj=obj)
AttributeError: __int__

It's not when the cursor is positioned in some other fields. When I
tried to put some print-statements into gtk.py, it works. As a
workaround I inserted this:

def _obj2inst(obj):
        objname = _gtk.gtk_type_name(_gtk.GTK_OBJECT_TYPE(obj))
        if _name2cls.has_key(objname):
----->          repr(obj) ##ad bug-workaround
                return _name2cls[objname](_obj=obj)

Does anyone else have that problem too? It seems like something isn't
initialized properly.

thanks

Andreas
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to