[maemo-developers] Python Launcher released

From: Marius Gedminas marius at pov.lt
Date: Fri Mar 28 14:36:07 EET 2008
On Fri, Mar 28, 2008 at 02:08:08AM +0200, Kemal Hadimli wrote:
> Great news! Tried with kagu didn't work though. Kagu does "import gtk"
> and not "import pygtk", should I convert all "import gtk" and "gtk."
> references to pygtk? (or maybe "import pygtk as gtk"?)

No, 'gtk' and 'pygtk' are different modules.  'pygtk' is used to select
the 'gtk' version (when you have 1.2 and 2.0 installed side by side),
while 'gtk' is for actually doing stuff:

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

AFAIU the 'import pygtk; pygtk.require(version)' bit is not so important
these days when no one used gtk 1.2 any more.

I may have some details wrong; I was unable to find the relevant
documentation on pygtk.org.

Marius Gedminas
-- 
#define QUESTION ((bb) || !(bb)) /* Shakespeare */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080328/f8519bb6/attachment.pgp 
More information about the maemo-developers mailing list