mailr20944 - /trunk/gui/analyses/elements/model_list.py


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

Header


Content

Posted by edward on September 09, 2013 - 18:52:
Author: bugman
Date: Mon Sep  9 18:52:18 2013
New Revision: 20944

URL: http://svn.gna.org/viewcvs/relax?rev=20944&view=rev
Log:
Refinements for the model list GUI window.

The font for all text elements is now set.  And the elements of the 
wx.FlexGridSizer are now
vertically centred so that the text of the checkboxes and text elements line 
up perfectly.


Modified:
    trunk/gui/analyses/elements/model_list.py

Modified: trunk/gui/analyses/elements/model_list.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/elements/model_list.py?rev=20944&r1=20943&r2=20944&view=diff
==============================================================================
--- trunk/gui/analyses/elements/model_list.py (original)
+++ trunk/gui/analyses/elements/model_list.py Mon Sep  9 18:52:18 2013
@@ -279,7 +279,7 @@
         for title in titles:
             text = wx.StaticText(self, -1, str_to_gui(title))
             text.SetFont(font.title)
-            self.grid_sizer.Add(text)
+            self.grid_sizer.Add(text, 0, wx.ALIGN_CENTER_VERTICAL)
         for i in range(len(titles)):
             self.grid_sizer.Add(wx.StaticText(self, -1, ""))
 
@@ -295,17 +295,21 @@
             # Create a checkbox for the model.
             check_box = wx.CheckBox(self, -1, str_to_gui(models[i]))
             self.model_selection.append(check_box)
-            self.grid_sizer.Add(check_box)
+            self.grid_sizer.Add(check_box, 0, wx.ALIGN_CENTER_VERTICAL)
 
             # Set all selections to True.
             self.model_selection[-1].SetValue(True)
 
             # Add the parameter text.
-            self.grid_sizer.Add(wx.StaticText(self, -1, 
str_to_gui(params[i])))
+            text = wx.StaticText(self, -1, str_to_gui(params[i]))
+            text.SetFont(font.normal)
+            self.grid_sizer.Add(text, 0, wx.ALIGN_CENTER_VERTICAL)
 
             # Add the description.
             if desc_flag:
-                self.grid_sizer.Add(wx.StaticText(self, -1, 
str_to_gui(desc[i])))
+                text = wx.StaticText(self, -1, str_to_gui(desc[i]))
+                text.SetFont(font.normal)
+                self.grid_sizer.Add(text, 0, wx.ALIGN_CENTER_VERTICAL)
 
         # Add the table to the sizer.
         sizer.Add(self.grid_sizer, 1, wx.ALL|wx.EXPAND, 0)




Related Messages


Powered by MHonArc, Updated Mon Sep 09 19:00:02 2013