Make closing work more cleanly
This commit is contained in:
parent
40d9c6c08f
commit
da935d8e46
6
pygo.py
6
pygo.py
|
@ -34,6 +34,8 @@ class Pygo():
|
||||||
|
|
||||||
|
|
||||||
def init_widgets(self):
|
def init_widgets(self):
|
||||||
|
self.window.connect('delete-event', self.on_quit)
|
||||||
|
|
||||||
self.window.resize(800,600)
|
self.window.resize(800,600)
|
||||||
# gobject.timeout_add(1000, self.update)
|
# gobject.timeout_add(1000, self.update)
|
||||||
|
|
||||||
|
@ -99,8 +101,8 @@ class Pygo():
|
||||||
print 'stub: Pygo.on_net_direct()'
|
print 'stub: Pygo.on_net_direct()'
|
||||||
|
|
||||||
|
|
||||||
def on_quit(self, widget):
|
def on_quit(self, widget, event=None):
|
||||||
sys.exit(0)
|
gtk.main_quit()
|
||||||
|
|
||||||
|
|
||||||
def do_prev_page(self):
|
def do_prev_page(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user