diff options
author | Ryan Rix <phrkonaleash@gmail.com> | 2009-12-08 13:08:51 -0700 |
---|---|---|
committer | Ryan Rix <phrkonaleash@gmail.com> | 2009-12-08 13:08:51 -0700 |
commit | 3212df8136dda3c3ed1e42191c9ab64538b849ff (patch) | |
tree | 4d8cf676390f7f3d4d5dc59c1ccaf13c91bfe519 | |
parent | 7f52e0924c7b9dec4f06fb41357c5276aec41400 (diff) | |
download | fedora-tour-3212df8136dda3c3ed1e42191c9ab64538b849ff.tar.gz fedora-tour-3212df8136dda3c3ed1e42191c9ab64538b849ff.tar.xz fedora-tour-3212df8136dda3c3ed1e42191c9ab64538b849ff.zip |
Added standard signal handlers for window creation and destruction.
-rw-r--r-- | frontend/tour_gtk_frontend.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontend/tour_gtk_frontend.py b/frontend/tour_gtk_frontend.py index 4a2bd62..a891794 100644 --- a/frontend/tour_gtk_frontend.py +++ b/frontend/tour_gtk_frontend.py @@ -28,11 +28,19 @@ This class is responsible for the creation and destruction of the main window. class Frontend: def __init__(self): self.mainWindow=create_win() + self.mainWindow.connect("delete_event", self.winDelete) + self.mainWindow.connect("destroy",self.winDestory) + pass - def destroy_window(self,widget,Data=none): - gtk.main_quit() + def winDestroy(self,widget,Data=none): + return False + def winDelete(self,widget,Data=none): + gtk.main_quit() + + """ + def create_win(self): return gtk.Window(gtk.WINDOW_TOPLEVEL) |