mailr13005 - /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 - 18:04:
Author: bugman
Date: Tue Jun 14 18:04:33 2011
New Revision: 13005

URL: http://svn.gna.org/viewcvs/relax?rev=13005&view=rev
Log:
The row heights are now set to match the delay time text control.


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=13005&r1=13004&r2=13005&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Tue Jun 14 18:04:33 2011
@@ -359,14 +359,20 @@
         self.grid.SetColLabelValue(1, "Relaxation delay [s]")
         self.grid.SetColLabelValue(2, "No. of cycles")
 
+        # Properties.
+        self.grid.SetDefaultCellFont(self.gui.font_normal)
+        self.grid.SetLabelFont(self.gui.font_normal_bold)
+
+        # Text height.
+        height = self.delay_time.GetSize()[1]
+
         # Column properties.
         for i in range(self.grid.GetNumberRows()):
             # Set the editor for the number of cycles column.
             self.grid.SetCellEditor(i, 2, Delay_num_cell_editor(0, 200, 
self))
 
-        # Properties.
-        self.grid.SetDefaultCellFont(self.gui.font_normal)
-        self.grid.SetLabelFont(self.gui.font_normal_bold)
+            # Row properties.
+            self.grid.SetRowSize(i, height)
 
         # No cell resizing allowed.
         self.grid.EnableDragColSize(False)




Related Messages


Powered by MHonArc, Updated Tue Jun 14 18:20:01 2011