mailr12915 - /1.3/gui/analyses/auto_model_free.py


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

Header


Content

Posted by edward on June 09, 2011 - 12:52:
Author: bugman
Date: Thu Jun  9 12:52:56 2011
New Revision: 12915

URL: http://svn.gna.org/viewcvs/relax?rev=12915&view=rev
Log:
The auto model-free frame is now using the add_title() base class method.


Modified:
    1.3/gui/analyses/auto_model_free.py

Modified: 1.3/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_model_free.py?rev=12915&r1=12914&r2=12915&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_model_free.py (original)
+++ 1.3/gui/analyses/auto_model_free.py Thu Jun  9 12:52:56 2011
@@ -42,6 +42,7 @@
 
 # relax GUI module imports.
 from gui.about import About_base
+from gui.analyses.base import Base_frame
 from gui.analyses.results_analysis import model_free_results, see_results
 from gui.analyses.select_model_calc import Select_tensor
 from gui.base_classes import Container
@@ -151,7 +152,7 @@
         self.offset(-self.offset())
 
 
-class Auto_model_free:
+class Auto_model_free(Base_frame):
     def __init__(self, gui, notebook):
         """Build the automatic model-free protocol GUI element.
 
@@ -233,23 +234,6 @@
 
         # Add the element to the box.
         box.Add(sizer, 1, wx.ALIGN_RIGHT, 0)
-
-
-    def add_frame_title(self, box):
-        """Create and add the frame title to the given box.
-
-        @param box:     The box element to pack the frame title into.
-        @type box:      wx.BoxSizer instance
-        """
-
-        # The title.
-        label = wx.StaticText(self.parent, -1, "Setup for model-free 
analysis")
-
-        # The font properties.
-        label.SetFont(self.gui.font_title)
-
-        # Pack the title.
-        box.Add(label, 0, wx.BOTTOM|wx.ADJUST_MINSIZE, 18)
 
 
     def add_max_iterations(self, box):
@@ -872,7 +856,7 @@
         box = wx.BoxSizer(wx.VERTICAL)
 
         # Add the frame title.
-        self.add_frame_title(box)
+        self.add_title(box, "Setup for model-free analysis")
 
         # Add the relaxation data input GUI element.
         self.add_relax_data_input(box)




Related Messages


Powered by MHonArc, Updated Thu Jun 09 13:00:01 2011