~pyroom-dev/pyroom/0.3

« back to all changes in this revision

Viewing changes to gui.py

  • Committer: Florian Heinle
  • Date: 2008-07-12 14:52:23 UTC
  • Revision ID: florian-launchpad@planet-tiax.de-20080712145223-p3jgg7tbsedkhw04
show save dialog on pressing alt+f4, fixes lp:188905

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
class GUI():
89
89
    """our basic global gui object"""
90
90
 
91
 
    def __init__(self, style, pyroom_config):
 
91
    def __init__(self, style, pyroom_config, edit_instance):
92
92
        self.status = FadeLabel()
93
93
        self.style = style
 
94
        self.edit_instance = edit_instance
94
95
 
95
96
        # Main window
96
97
 
151
152
 
152
153
    def delete_event(self, widget, event, data=None):
153
154
        """ Quit """
154
 
        return False
 
155
        self.edit_instance.dialog_quit()
 
156
        return True
155
157
 
156
158
    def destroy(self, widget, data=None):
157
159
        """ Quit """