mailr12945 - /1.3/gui/analyses/base.py


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

Header


Content

Posted by edward on June 09, 2011 - 19:33:
Author: bugman
Date: Thu Jun  9 19:33:23 2011
New Revision: 12945

URL: http://svn.gna.org/viewcvs/relax?rev=12945&view=rev
Log:
A spacer is now used for add_text_sel_element() if no button is present to 
fill the button space.


Modified:
    1.3/gui/analyses/base.py

Modified: 1.3/gui/analyses/base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/base.py?rev=12945&r1=12944&r2=12945&view=diff
==============================================================================
--- 1.3/gui/analyses/base.py (original)
+++ 1.3/gui/analyses/base.py Thu Jun  9 19:33:23 2011
@@ -86,7 +86,7 @@
         label.SetFont(self.gui.font_normal)
 
         # Add the label to the box.
-        box.Add(label, 0, 
wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
+        box.Add(label, 0, 0, 0)
 
 
     def add_subtitle(self, box, text):
@@ -217,6 +217,10 @@
             # Add the button.
             self.add_button_open(sizer, parent, fn=fn, width=width_button, 
height=size[1])
 
+        # No button, so add a spacer.
+        else:
+            sizer.AddSpacer((width_button, -1))
+
         # Add the element to the box.
         box.Add(sizer, 1, wx.EXPAND, 0)
 




Related Messages


Powered by MHonArc, Updated Thu Jun 09 20:20:05 2011