Hello list,<br><br>I am novice GTK/glade developer. I have a dummy application written in pyGTK, and want to hildonize it.<br>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.
<br><br><br>My main class:<br><br>class foo:<br><div style="margin-left: 40px;"> """This is an Hello World GTK application"""<br> def __init__(self):<br> #Set the Glade file<br> self.gladefile
= "smsit.glade" <br>self.wTree = gtk.glade.XML(self.gladefile) <br><br> #Create our dictionay and connect it<br> dic = { "on_send_clicked" : self.send_clicked,<br> "on_MainWindow_destroy" :
gtk.main_quit,<br> }<br> self.wTree.signal_autoconnect(dic)<br><br> self.text = self.wTree.get_widget("text")<br> self.text = self.text.get_buffer()<br> if (self.text):<br><div style="margin-left: 40px;">
self.text.connect("changed", self.on_text_changed)<br></div><br><br> def send_clicked(self, widget):<br><div style="margin-left: 40px;"> num = self.wTree.get_widget("phone_number").get_text()<br> print "sending to "+num
<br></div><br> def on_text_changed(self, widget):<br><div style="margin-left: 40px;"> #text = self.wTree.get_widget("text")<br>pass<br></div></div> <br>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?<br><br>Thank you,<br>Thanos.<br>