mailr11563 - /branches/bieri_gui/gui_bieri/settings.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 15, 2010 - 19:23:
Author: bugman
Date: Wed Sep 15 19:23:08 2010
New Revision: 11563

URL: http://svn.gna.org/viewcvs/relax?rev=11563&view=rev
Log:
The global settings and parameter file windows can now be closed via window 
decorations without error.

The closing of these windows via window decorations (the x in the top right 
for example) was not
being caught and the windows could not be reopened.


Modified:
    branches/bieri_gui/gui_bieri/settings.py

Modified: branches/bieri_gui/gui_bieri/settings.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/settings.py?rev=11563&r1=11562&r2=11563&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/settings.py (original)
+++ branches/bieri_gui/gui_bieri/settings.py Wed Sep 15 19:23:08 2010
@@ -86,6 +86,7 @@
 
         self.Bind(wx.EVT_BUTTON, self.accept_settings, self.ok_copy)
         self.Bind(wx.EVT_BUTTON, self.cancel_settings, self.cancel_copy)
+        self.Bind(wx.EVT_CLOSE, self.cancel_settings)
 
 
     def __do_layout(self):
@@ -188,6 +189,7 @@
 
         self.Bind(wx.EVT_BUTTON, self.accept_settings, self.ok_copy_copy)
         self.Bind(wx.EVT_BUTTON, self.cancel_settings, self.cancel_copy_copy)
+        self.Bind(wx.EVT_CLOSE, self.cancel_settings)
 
 
     def __do_layout(self):




Related Messages


Powered by MHonArc, Updated Wed Sep 15 19:40:02 2010