When trying to launch PyBiff 0.2.1 (Mail checker that uses
gnome-python), I get this error message:

Traceback (innermost last):
  File "/opt/gnome/bin/pybiff_applet", line 25, in ?
    app = Applet()
  File "/opt/gnome/share/pybiff/PyBiffApplet.py", line 342, in
  __init__
    self.propertybox.iconentry[0].gtk_entry().connect("changed",
  self.on_anyentry_changed)
  File "/usr/lib/python1.5/site-packages/gnome/ui.py", line 945, in
  gtk_entry
    return GtkEntry(_obj=
NameError: GtkEntry

Looks like the problem is in ui.py, which is part of PyGnome.

If I understand this well (I have absolutely no Python knowledge),
this means that the "identifier" GtkEntry has no meaning for Python at
this stage. To me, it looks like it is defined in
/usr/lib/python1.5/site-packages/gtk.py

The header of that file says 'Just type "from gtk import *"', so I
added this to gnome/ui.py (fourth line, just after the other
"import"'s, and now it works. Diff file attached.

P.S.: I'm not subscribed to the PyGtk ML. If you want to get to me,
e-mail directly.

-- 
Lionel Elie Mamane
RFC 1991 (PGP 2.x) 2048 bits Key Fingerprint (KeyID: 20C897E9): 85CF 986F 263E 8CD0 
80FD 4B8C F5F9 C17D
OpenPGP DH/DSS 4096/1024 Key Fingerprint (KeyID: 3E7B4B73): 9DAD 3131 3ADA F50B D096 
002A B1C4 7317 3E7B 4B73
3a4
> from gtk import *

PGP signature

Reply via email to