![]() |
2010-08-09
, 13:38
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#3
|
Guys,
I have decided to jump in at the deep end and look at development for the n900. Im not much of a programmer though apart from dabbling in vb when needed at work so its probably going to be a slow ride. ive never been much for the hello world method of learning, preferring to get my hands on a more complex piece of code and just figure out how its working as i go. so heres where i am at the moment and any help or abuse that ive bitten off more than i can chew would be appreciated:
i have decided to start in python as im getting the general opinion that its easy to pick up and to my benefit the application im looking to port (xbox friend list) is available as python open source which i have messed about with and got running on ubuntu with minimal fuss. The problem now is it uses gtk.glade. I was under the impression that this was supported and that apps like gpodder used it but if i try to run the code on the n900 i get a module gtk.glade not found error.
From searching about i see reference to gtkbuilder as an alternative but while i understand the majority of the code im not entirely sure which bits reference the glade and so what would need to be changed.
Am i on to a lost cause trying to port a python app? any advise or help would be appreciated
The Following User Says Thank You to epage For This Useful Post: | ||
![]() |
2010-08-09
, 14:01
|
Posts: 105 |
Thanked: 143 times |
Joined on Nov 2009
|
#4
|
![]() |
2010-08-09
, 17:33
|
Posts: 105 |
Thanked: 143 times |
Joined on Nov 2009
|
#5
|
![]() |
2010-08-09
, 17:51
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#6
|
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
![]() |
2010-08-09
, 17:56
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#7
|
NopeInstaled the Maemo-Python-Device development enviroment finally (after a dependency nightmare caused by another app), which I assume gives me pymaemo as it was the only one I could find and still complaining about the GTK.Glade statement. Seems to be the only part so far that it doesnt like which suprised me as if I comment it out it gets down to the xml glade statement before it falls over again. Pasted the first part of the code here in case anyone can tell me what I am missing (epage, cheers for the link to your source. defo useful)
#!/usr/bin/python
import ConfigParser
from ConfigParser import NoOptionError
import os
import os.path
import re
import threading
import time
import urllib2
import pygtk
pygtk.require("2.0")
import gtk
# import gtk.glade
import gnome
import gobject
![]() |
2010-08-09
, 18:28
|
Posts: 105 |
Thanked: 143 times |
Joined on Nov 2009
|
#8
|
![]() |
2010-08-09
, 18:48
|
Posts: 105 |
Thanked: 143 times |
Joined on Nov 2009
|
#9
|
![]() |
2010-08-09
, 22:51
|
Posts: 105 |
Thanked: 143 times |
Joined on Nov 2009
|
#10
|
The Following 2 Users Say Thank You to cferrism For This Useful Post: | ||
I have decided to jump in at the deep end and look at development for the n900. Im not much of a programmer though apart from dabbling in vb when needed at work so its probably going to be a slow ride. ive never been much for the hello world method of learning, preferring to get my hands on a more complex piece of code and just figure out how its working as i go. so heres where i am at the moment and any help or abuse that ive bitten off more than i can chew would be appreciated:
i have decided to start in python as im getting the general opinion that its easy to pick up and to my benefit the application im looking to port (xbox friend list) is available as python open source which i have messed about with and got running on ubuntu with minimal fuss. The problem now is it uses gtk.glade. I was under the impression that this was supported and that apps like gpodder used it but if i try to run the code on the n900 i get a module gtk.glade not found error.
From searching about i see reference to gtkbuilder as an alternative but while i understand the majority of the code im not entirely sure which bits reference the glade and so what would need to be changed.
Am i on to a lost cause trying to port a python app? any advise or help would be appreciated