Fixed possibly another MacOS layout bug

master
Daid 2012-03-09 15:50:37 +01:00
parent 51766df22f
commit aef78e0582
1 changed files with 2 additions and 1 deletions

View File

@ -86,11 +86,12 @@ class TitleRow():
def __init__(self, panel, name):
"Add a title row to the configuration panel"
sizer = panel.GetSizer()
x = sizer.GetRows()
self.title = wx.StaticText(panel, -1, name)
self.title.SetFont(wx.Font(8, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_BOLD))
sizer.Add(self.title, (sizer.GetRows(),0), (1,3), flag=wx.EXPAND)
sizer.Add(wx.StaticLine(panel), (sizer.GetRows()+1,0), (1,3), flag=wx.EXPAND)
sizer.SetRows(sizer.GetRows() + 2)
sizer.SetRows(x + 2)
class SettingRow():
def __init__(self, panel, label, configName, defaultValue = '', helpText = 'Help: TODO', type = 'profile'):