mailr12896 - /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 08, 2011 - 13:57:
Author: bugman
Date: Wed Jun  8 13:57:31 2011
New Revision: 12896

URL: http://svn.gna.org/viewcvs/relax?rev=12896&view=rev
Log:
Renamed peak_list_header() to add_header().


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=12896&r1=12895&r2=12896&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Wed Jun  8 13:57:31 2011
@@ -75,7 +75,7 @@
         self.num_rows = 50
 
         # Add peak list selection header.
-        self.peak_list_header(box)
+        self.add_header(box)
 
         # A sizer for the buttons and grid.
         sizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -162,6 +162,26 @@
 
         # Add grid to sizer, with spacing.
         sizer.Add(self.peaklist, -1, wx.EXPAND, 0)
+
+
+    def add_header(self, box):
+        """Add header for peak list section
+
+        @param box:     The box element to pack the structure file selection 
GUI element into.
+        @type box:      wx.BoxSizer instance
+        """
+
+        # Horizontal packing for this element.
+        sizer = wx.BoxSizer(wx.HORIZONTAL)
+
+        # The label.
+        label = wx.StaticText(self.parent, -1, "\nData points:", 
style=wx.ALIGN_RIGHT)
+        label.SetMinSize((230, 40))
+        label.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
+        sizer.Add(label, 0, 
wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
+
+        # Add the element to the box.
+        box.Add(sizer, 0, wx.ADJUST_MINSIZE, 0)
 
 
     def event_left_dclick(self, event):
@@ -429,26 +449,6 @@
                 error_message('Not all files could be loaded.')
 
 
-    def peak_list_header(self, box):
-        """Add header for peak list section
-
-        @param box:     The box element to pack the structure file selection 
GUI element into.
-        @type box:      wx.BoxSizer instance
-        """
-
-        # Horizontal packing for this element.
-        sizer = wx.BoxSizer(wx.HORIZONTAL)
-
-        # The label.
-        label = wx.StaticText(self.parent, -1, "\nData points:", 
style=wx.ALIGN_RIGHT)
-        label.SetMinSize((230, 40))
-        label.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
-        sizer.Add(label, 0, 
wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
-
-        # Add the element to the box.
-        box.Add(sizer, 0, wx.ADJUST_MINSIZE, 0)
-
-
     def sync_ds(self, upload=False):
         """Synchronise the rx analysis frame and the relax data store, both 
ways.
 




Related Messages


Powered by MHonArc, Updated Wed Jun 08 14:00:02 2011