Re: pygtk does ... ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: pygtk does ... ?

From: Dave Cook <davecook@nowhere.net>
Date: Sat Jul 09 2005 - 14:20:36 CEST

On 2005-07-08, Thomas Bartkus <thomasbartkus@comcast.net> wrote:

> Why would I want to "import pygtk" with it's single function
> "require(version)"?
> What is it supposed to do? Where does it fit in?

The only reason I can think of is to use pygtk.require, so you can specify
which major version of pygtk you want to use, assuming you have multiple
versions:

import pygtk
pygtk.require('2.0')
import gtk

Otherwise, you don't need to import pygtk, just gtk.

Dave Cook
Received on Thu Sep 29 16:51:00 2005