mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00572
[Branch ~cdd-dev/cdd/trunk] Rev 158: Trapped window close events and tied to confirmation box.
------------------------------------------------------------
revno: 158
committer: Eduardo César <xcesar@xxxxxxxxx>
branch nick: cdd
timestamp: Fri 2012-07-06 23:34:40 -0300
message:
Trapped window close events and tied to confirmation box.
modified:
Generator/cdg/MainFrame.py
--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk
Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'Generator/cdg/MainFrame.py'
--- Generator/cdg/MainFrame.py 2012-07-07 02:30:12 +0000
+++ Generator/cdg/MainFrame.py 2012-07-07 02:34:40 +0000
@@ -231,6 +231,8 @@
self.c.save_config()
self.button_save_config.Disable()
+ def on_close_window(self, event):
+ cdg_extra.quit_program(self)
def init_things(self):
cdg_extra.set_icon(self)
@@ -238,5 +240,6 @@
self.c.read_config()
self.c.set_panel_configs()
self.button_save_config.Disable()
+ self.Bind(wx.EVT_CLOSE, self.on_close_window)
# end of class MainFrame