104 |
|
|
105 |
self.init_dialogs() |
self.init_dialogs() |
106 |
|
|
107 |
EVT_CLOSE(self, self._OnClose) |
EVT_CLOSE(self, self.OnClose) |
108 |
|
|
109 |
def Subscribe(self, channel, *args): |
def Subscribe(self, channel, *args): |
110 |
"""Subscribe a function to a message channel. |
"""Subscribe a function to a message channel. |
395 |
def Exit(self): |
def Exit(self): |
396 |
self.Close(False) |
self.Close(False) |
397 |
|
|
398 |
def _OnClose(self, event): |
def OnClose(self, event): |
399 |
result = self.save_modified_session(can_veto = event.CanVeto()) |
result = self.save_modified_session(can_veto = event.CanVeto()) |
400 |
if result == wxID_CANCEL: |
if result == wxID_CANCEL: |
401 |
event.Veto() |
event.Veto() |