Chen Puqing wrote: > Hi! I'm a newbie in this mailing list. I encountered problem after > pygtk is > installed on my machine. I wish someone could help me. Thank you! > > I'm using linux. The glib and gtk+ installed is version 1.2.10. Python is > 2.0.1. And pygtk is 0.6.8 downloaded from ftp.gtk.org. > > I've installed pygtk. But I couldn't run any of the testing programs in > examples/simple directory. When I run hello1.py. It said their is no > gtk_window_new function. > > I typed 'python' in the shell and then 'import _gtk'. It succeeded > silently. > Then I typed dir(_gtk) but couldn't find 'gtk_window_new' in the output. > When I type _gtk.gtk_window_new, it print 'AttributeError: gtk_window_new' > > Then I searched the string 'gtk_window_new' in the file 'gtkmodule.c' but > find there isn't this string at all. > > Why? I think I made some mistake. I wish there is someone could help me. > Thank you very much!
How did you compile pygtk? The gtk_window_new() wrapper should be generated during the build (the wrapper will end up in gtkmodule_impl.c). To build, you should only have to do: ./configure --prefix=... (python's install prefix) make make install James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
