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 */

Attachment: signature.asc
Description: Digital signature

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to