maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   python GDK module? (https://talk.maemo.org/showthread.php?t=9686)

gsagers 2007-09-12 22:14

python GDK module?
 
I'm trying to get PyGPS to run on the tablet, and, after conquering the first obstacle by declaring "coding=utf-8" as line 2 of the pygps file, I run into the following error.

Code:

File "pygps", line 7, in <module>
    import GDK
ImportError: No module named GDK

Is there a python-GDK module available for maemo? Google's not turning up anything, and apt-cache search on the vmware maemo appliance only turns up "python-gdk-imlib-1.2" Any ideas where the python GDK classes live?

Khertan 2007-09-12 22:37

Re: python GDK module?
 
import gtk.gdk

gsagers 2007-09-13 13:01

Re: python GDK module?
 
Thanks, but that gives me the same error as just commenting out the "import GDK" line, namely

"python[5490]: GLIB WARNING ** default - Trying to register gtype 'GtkInvalidInputType' as flags when in fact it is of type 'GEnum'"

I'm out of my depth here obviously, I don't really know Python, but if anyone has any more ideas, I'd appreciate them.

yerga 2007-09-13 16:30

Re: python GDK module?
 
try with:

import gtk.gdk as GDK

gsagers 2007-09-13 17:22

Re: python GDK module?
 
No difference. I'm not even sure the problem is strictly related to GDK - I don't know when the source was updated, but the PyGPS web page hasn't been updated since 2005, and the program won't run on my laptop, either. It may be big changes in Python or other APIs.


All times are GMT. The time now is 03:32.

vBulletin® Version 3.8.8