summaryrefslogtreecommitdiffstats
path: root/frontend/tour_gtk_frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/tour_gtk_frontend.py')
-rw-r--r--frontend/tour_gtk_frontend.py12
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)