mail[task #6847] The Bieri graphical user interface.


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

Header


Content

Posted by Michael Bieri on February 05, 2010 - 02:00:

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/




Related Messages


Powered by MHonArc, Updated Tue Feb 16 04:00:13 2010