On Wed, 18 Apr 2001, Skip Montanaro wrote:
> James,
>
> In the April 8th snapshot, "from gtk import *" seems to only support the
> symbols GTK, GDK and _gtk. This is no problem for me, but some of the
> examples fail to work. Do you want patches against them that do the right
> thing? Example:
>
> % cd examples/neil
> % python TAppli.py
> settings-notify: bell-percent = "80.000000"
> settings-notify: bell-duration = "250"
> settings-notify: bell-pitch = "440"
> Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY
> UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES.
> if you don't know why you are getting this, you probably want to
> use the stable branch which can be retrived from
> ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with
> cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+
> Traceback (most recent call last):
> File "TAppli.py", line 138, in ?
> app=Application(sys.argv)
> File "TAppli.py", line 13, in __init__
> self.w_window=GtkWindow()
> NameError: global name 'GtkWindow' is not defined
I have no idea about this one. "from gtk import *" works fine on my
system (python 2.0, cvs glib,pango,gtk+):
Python 2.0 (#1, Nov 28 2000, 14:16:13)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from gtk import *
settings-notify: bell-percent = "80.000000"
settings-notify: bell-duration = "250"
settings-notify: bell-pitch = "440"
Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY
UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES.
if you don't know why you are getting this, you probably want to
use the stable branch which can be retrived from
ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with
cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+
>>> GtkWindow
<extension class gtk._gtk.GtkWindow at 402dcc40>
>>>
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk