Author: bugman Date: Tue Dec 28 10:37:07 2010 New Revision: 11986 URL: http://svn.gna.org/viewcvs/relax?rev=11986&view=rev Log: The destroying of the window on clicking is now optional. Modified: branches/bieri_gui/gui_bieri/about.py branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Modified: branches/bieri_gui/gui_bieri/about.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=11986&r1=11985&r2=11986&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/about.py (original) +++ branches/bieri_gui/gui_bieri/about.py Tue Dec 28 10:37:07 2010 @@ -52,6 +52,9 @@ # Window styles. style = wx.BORDER_NONE | wx.STAY_ON_TOP + + # Destroy on clicking. + DESTROY_ON_CLICK = True def __init__(self, parent=None, id=-1, title=''): """Build the dialog.""" @@ -202,7 +205,8 @@ """ # Close the widget. - self.Destroy() + if self.DESTROY_ON_CLICK: + self.Destroy() def set_background(self): @@ -441,4 +445,5 @@ webbrowser.open_new(self.info.website) # Close the dialog on all clicks. - self.Destroy() + if self.DESTROY_ON_CLICK: + self.Destroy() Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_model_free.py?rev=11986&r1=11985&r2=11986&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/analyses/auto_model_free.py (original) +++ branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Tue Dec 28 10:37:07 2010 @@ -71,6 +71,9 @@ # Window style. style = wx.DEFAULT_DIALOG_STYLE + + # Destroy on clicking. + DESTROY_ON_CLICK = False def __init__(self, parent): """Set up the user function class."""