mailr12959 - /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 10, 2011 - 12:17:
Author: bugman
Date: Fri Jun 10 12:17:13 2011
New Revision: 12959

URL: http://svn.gna.org/viewcvs/relax?rev=12959&view=rev
Log:
The peak list grid GUI element now expands within the box it is given.


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=12959&r1=12958&r2=12959&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Fri Jun 10 12:17:13 2011
@@ -224,7 +224,7 @@
         @type width:        int
         @keyword height:    The initial height of the GUI element.
         @type height:       int
-        @keyword box:       The box sizer to pack this GUI component into.
+        @keyword box:       The vertical box sizer to pack this GUI 
component into.
         @type box:          wx.BoxSizer instance
         """
 
@@ -247,18 +247,9 @@
         # Add the cycle delay time element.
         self.delay_time = self.subparent.add_text_sel_element(box, 
self.parent, text="Single delay cycle time [s]")
 
-        # A sizer for the buttons and grid.
-        sizer = wx.BoxSizer(wx.HORIZONTAL)
-
-        # Add the buttons.
-        #self.add_buttons(sizer)
-
         # Add the grid.
-        self.add_grid(sizer)
-
-        # Pack the box.
         box.AddSpacer(self.spacing)
-        box.Add(sizer, 0, wx.EXPAND, 0)
+        self.add_grid(box)
         box.AddSpacer(self.spacing)
 
 
@@ -315,7 +306,7 @@
         """
 
         # Grid of peak list file names and relaxation time.
-        self.grid = wx.grid.Grid(self.parent, -1, size=(1, 210))
+        self.grid = wx.grid.Grid(self.parent, -1)
 
         # Create entries.
         self.grid.CreateGrid(self.num_rows, 3)
@@ -344,7 +335,7 @@
         self.grid.Bind(wx.EVT_KEY_DOWN, self.event_key_down)
 
         # Add grid to sizer, with spacing.
-        sizer.Add(self.grid, -1, wx.EXPAND, 0)
+        sizer.Add(self.grid, 1, wx.ALL|wx.EXPAND, 0)
 
 
     def change_delay_down(self, event):




Related Messages


Powered by MHonArc, Updated Fri Jun 10 12:40:02 2011