[maemo-developers] [maemo-developers] glade-python-hildon
From: Thanos Panousis pthanos at gmail.comDate: Wed Jun 28 16:35:01 EEST 2006
- Previous message: [maemo-developers] Modifying the X Server
- Next message: [maemo-developers] glade-python-hildon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello list,
I am novice GTK/glade developer. I have a dummy application written in
pyGTK, and want to hildonize it.
The tutorial in the maemo site, descibes the way to do this for the gPodder
application. However, this application has been written using a
"non-standard" blend of pyGTK and glade: it uses the simpleGladeApp class,
which changes the normal flow of standard pygtk-glade program.
My main class:
class foo:
"""This is an Hello World GTK application"""
def __init__(self):
#Set the Glade file
self.gladefile = "smsit.glade"
self.wTree = gtk.glade.XML(self.gladefile)
#Create our dictionay and connect it
dic = { "on_send_clicked" : self.send_clicked,
"on_MainWindow_destroy" : gtk.main_quit,
}
self.wTree.signal_autoconnect(dic)
self.text = self.wTree.get_widget("text")
self.text = self.text.get_buffer()
if (self.text):
self.text.connect("changed", self.on_text_changed)
def send_clicked(self, widget):
num = self.wTree.get_widget("phone_number").get_text()
print "sending to "+num
def on_text_changed(self, widget):
#text = self.wTree.get_widget("text")
pass
I guess that all the GTK-specific window initialization takes place with the
call of gtk.glade.XML(gladefile). How can I tell my application to use the
hildon-specific hildon.program() and hildon.window() to create a hildonized
version of the app?
Thank you,
Thanos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060628/eef28790/attachment.htm
- Previous message: [maemo-developers] Modifying the X Server
- Next message: [maemo-developers] glade-python-hildon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
