On 31/12/2009 16:46, Dean Sadites wrote:
> Hello. I was wondering if you could tell me why all of the Python/GTK
> apps I write seem to work WITH or WITHOUT the "import pygtk" line? Is
> this now optional? Is Python automatically adding it if it's missing?
> Thanks!
>
Hi, Dena, I'm forwarding this question to the general PyGTK mailin list
as this is the PyGTK website maintenance mailing list.
For any further questions about the use of PyGTK you should use the
general pygtk mailing list.
Regarding your question, and as far as I know, that trick was used to
allow paralell installation and use of gtk 2.x alongside the older gtk
1.x versiones, and being able to specify which version should be used in
your Python application, with the pygtk.require method.
So, most of those examples you can find out there read:
import pygtk
pygtk.require('2.0')
import gtk
Regards,
Rafael Villar Burke
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/