Follow-up Comment #34, task #6847 (project relax): patch: A close box is added to the relaxGUI main window as requested by Edward d'Auvergne (http://www.mail-archive.com/relax-devel@xxxxxxx/msg02318.html). Keyword for window decoration was added: @@ -74,7 +74,7 @@ """Initialise the main relax GUI frame.""" # Add the style keyword value. - kwds["style"] = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLIP_CHILDREN + kwds["style"] = wx.CLOSE_BOX | wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLIP_CHILDREN # Execute the base class __init__ method. super(Main, self).__init__(*args, **kwds) In addition, closing event will be directed to the exitGUI() function: @@ -248,6 +248,10 @@ self.Bind(wx.EVT_LISTBOX_DCLICK, self.open_model_results_exe, self.list_modelfree) self.Bind(wx.EVT_BUTTON, self.open_model_results_exe, self.open_model_results) + # Close Box event + self.Bind(wx.EVT_CLOSE, self.exitGUI) + + # Pre-build the about dialogs, but do not show them. self.dialog_about_gui = About_gui(None, -1, "") self.dialog_about_relax = About_relax(None, -1, "") (file #7925) _______________________________________________________ Additional Item Attachment: File name: patch Size:1 KB _______________________________________________________ Reply to this item at: <http://gna.org/task/?6847> _______________________________________________ Nachricht geschickt von/durch Gna! http://gna.org/