[maemo-developers] PyGTK/Hildon: CLOSING CHILD WINDOW PROPERLY?
From: Darren Enns darethehair at gmail.comDate: Tue Feb 19 17:49:12 EET 2008
- Previous message: How to disable screen saver in SDL?
- Next message: PyGTK/Hildon: CLOSING CHILD WINDOW PROPERLY?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am trying to convert my command-line Python program into a
PyGTK/Hildonized version for my Nokia N800.
I am *very new* at doing this, so the best that I can do is look for
examples that other people have written, and this is what I have been
using for my 'child' window, but it does not work -- since when I close
the window my entire application ends:
def button_clicked(widget, data):
window2 = hildon.Window()
window2.connect("destroy", gtk.main_quit)
label = gtk.Label("blah")
label.set_text("You clicked on button "+data+"!!!")
label.show()
window2.add(label)
window2.show()
return
Can anyone tell me the 'trick' of being able to close a 'child' window
without the entire application shutting down?
Thanks!
Dare
- Previous message: How to disable screen saver in SDL?
- Next message: PyGTK/Hildon: CLOSING CHILD WINDOW PROPERLY?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
