Roberto Cavada wrote: >Hi all, > this scribble.py example (in pygtk-1.99.10/examples/simple dir) does >not work if I invoke the python2.2.[01] interpreter (see error report >below.) >The same example can be loaded if the python interpreter is version >2.1, but it does not work anyway: only an empty window with a button >in the bottom appears. > >GTK is 2.0.5 and pygtk is 1.99.10. >In general 'GtkWindow' is a "bad name" for the python version 2.2. >rob >--------- >%pwd >[...]/pygtk-1.99.10/examples/simple >%python2.2 scribble.py >Traceback (most recent call last): > File ".//scribble.py", line 79, in ? > main() > File ".//scribble.py", line 47, in main > win = GtkWindow() >NameError: global name 'GtkWindow' is not defined > > I hadn't gotten round to porting that example when I released 1.99.10. In CVS it has been ported though. This is not related to the use of Python 2.2. If you want to see the 2.0 version of that example, wait for the next release of pygtk (which I should make some time ...), or get the example from CVS.
James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
