Author: bugman Date: Mon Dec 13 12:07:09 2010 New Revision: 11773 URL: http://svn.gna.org/viewcvs/relax?rev=11773&view=rev Log: Improved layout of the user function ComboBox. Modified: branches/bieri_gui/gui_bieri/user_functions/base.py Modified: branches/bieri_gui/gui_bieri/user_functions/base.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/base.py?rev=11773&r1=11772&r2=11773&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/user_functions/base.py (original) +++ branches/bieri_gui/gui_bieri/user_functions/base.py Mon Dec 13 12:07:09 2010 @@ -325,11 +325,14 @@ # The description. text = wx.StaticText(self, -1, desc, style=wx.ALIGN_LEFT) - sub_sizer.Add(text, 1, wx.LEFT, self.border) + sub_sizer.Add(text, 0, wx.LEFT|wx.ALIGN_CENTER_VERTICAL, self.border) + + # Spacing. + sub_sizer.AddSpacer(10) # The combo box element. combo = wx.ComboBox(self, -1, value='', style=wx.CB_DROPDOWN|wx.CB_READONLY, choices=choices) - sub_sizer.Add(combo, 1, wx.LEFT, self.border) + sub_sizer.Add(combo, 1, wx.EXPAND, self.border) # Add to the main sizer. sizer.Add(sub_sizer)