mailr20945 - in /branches/relax_disp: ./ 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:53:
Author: bugman
Date: Mon Sep  9 18:53:05 2013
New Revision: 20945

URL: http://svn.gna.org/viewcvs/relax?rev=20945&view=rev
Log:
Merged revisions 20944 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r20944 | bugman | 2013-09-09 18:52:18 +0200 (Mon, 09 Sep 2013) | 6 lines
  
  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:
    branches/relax_disp/   (props changed)
    branches/relax_disp/gui/analyses/elements/model_list.py

Propchange: branches/relax_disp/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Sep  9 18:53:05 2013
@@ -1,1 +1,1 @@
-/trunk:1-20933
+/trunk:1-20944

Modified: branches/relax_disp/gui/analyses/elements/model_list.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/analyses/elements/model_list.py?rev=20945&r1=20944&r2=20945&view=diff
==============================================================================
--- branches/relax_disp/gui/analyses/elements/model_list.py (original)
+++ branches/relax_disp/gui/analyses/elements/model_list.py Mon Sep  9 
18:53:05 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:20:01 2013