mailr12987 - /1.3/gui/components/spectrum.py


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

Header


Content

Posted by edward on June 14, 2011 - 14:58:
Author: bugman
Date: Tue Jun 14 14:58:50 2011
New Revision: 12987

URL: http://svn.gna.org/viewcvs/relax?rev=12987&view=rev
Log:
Added an internal border to the relaxation peak list selection GUI element.


Modified:
    1.3/gui/components/spectrum.py

Modified: 1.3/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12987&r1=12986&r2=12987&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Tue Jun 14 14:58:50 2011
@@ -37,6 +37,7 @@
 # relaxGUI module imports.
 from gui.filedialog import multi_openfile, opendir, openfile
 from gui.message import error_message
+from gui.misc import add_border
 from gui import paths
 
 
@@ -237,6 +238,7 @@
 
         # GUI variables.
         self.spacing = 5
+        self.border = 5
 
         # The number of rows.
         self.num_rows = 50
@@ -246,17 +248,20 @@
         stat_box.SetFont(self.gui.font_subtitle)
         sub_sizer = wx.StaticBoxSizer(stat_box, wx.VERTICAL)
 
-        # Add the cycle delay time element.
-        sub_sizer.AddSpacer(self.spacing)
-        self.delay_time = self.subparent.add_text_sel_element(sub_sizer, 
self.parent, text="Single delay cycle time [s]")
-
-        # Add the grid.
-        sub_sizer.AddSpacer(self.spacing)
-        self.add_grid(sub_sizer)
-        sub_sizer.AddSpacer(self.spacing)
-
         # Add the sizer to the static box and the static box to the main box.
         box.Add(sub_sizer, 1, wx.ALL|wx.EXPAND, 0)
+
+        # Add a border.
+        box_centre = add_border(sub_sizer, border=self.border)
+
+        # Add the cycle delay time element.
+        box_centre.AddSpacer(self.spacing)
+        self.delay_time = self.subparent.add_text_sel_element(box_centre, 
self.parent, text="Single delay cycle time [s]")
+
+        # Add the grid.
+        box_centre.AddSpacer(self.spacing)
+        self.add_grid(box_centre)
+        box_centre.AddSpacer(self.spacing)
 
         # Catch a resize.
         stat_box.Bind(wx.EVT_SIZE, self.resize)




Related Messages


Powered by MHonArc, Updated Tue Jun 14 15:40:02 2011