[pygtk] Possible error in PyGnome (Gnome-Python 1.0.53)

Lionel Elie Mamane lionel@mamane.lu
Sun, 23 Jul 2000 14:03:00 +0200

Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw"
Content-Disposition: inline

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 =3D Applet()
  File "/opt/gnome/share/pybiff/PyBiffApplet.py", line 342, in
  File "/usr/lib/python1.5/site-packages/gnome/ui.py", line 945, in
    return GtkEntry(_obj=3D
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

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 2=
63E 8CD0 80FD 4B8C F5F9 C17D
OpenPGP DH/DSS 4096/1024 Key Fingerprint (KeyID: 3E7B4B73): 9DAD 3131 3ADA =
F50B D096 002A B1C4 7317 3E7B 4B73
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ui.py.diff"

> from gtk import *


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org