Commit aeaaf583 authored by Christopher Keller's avatar Christopher Keller

Fixed the Options Dialog so that only the input boxes resize.

Added right alignment for labels for easier reading/connecting label to input box.
Centered vertically the label and box so they line up clearly.
parent 813b33f2
...@@ -1639,7 +1639,10 @@ class options(wx.Dialog): ...@@ -1639,7 +1639,10 @@ class options(wx.Dialog):
topsizer=wx.BoxSizer(wx.VERTICAL) topsizer=wx.BoxSizer(wx.VERTICAL)
vbox=wx.StaticBoxSizer(wx.StaticBox(self, label=_("Defaults")) ,wx.VERTICAL) vbox=wx.StaticBoxSizer(wx.StaticBox(self, label=_("Defaults")) ,wx.VERTICAL)
topsizer.Add(vbox,1,wx.ALL+wx.EXPAND) topsizer.Add(vbox,1,wx.ALL+wx.EXPAND)
grid=wx.GridSizer(rows=0,cols=2,hgap=8,vgap=2) grid=wx.FlexGridSizer(rows=0,cols=2,hgap=8,vgap=2)
grid.SetFlexibleDirection( wx.BOTH )
grid.AddGrowableCol( 1 )
grid.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
vbox.Add(grid,0,wx.EXPAND) vbox.Add(grid,0,wx.EXPAND)
ctrls = {} ctrls = {}
for k,v in sorted(pronterface.settings._all_settings().items()): for k,v in sorted(pronterface.settings._all_settings().items()):
...@@ -1648,8 +1651,8 @@ class options(wx.Dialog): ...@@ -1648,8 +1651,8 @@ class options(wx.Dialog):
if k in pronterface.helpdict: if k in pronterface.helpdict:
ctrls[k,0].SetToolTipString(pronterface.helpdict.get(k)) ctrls[k,0].SetToolTipString(pronterface.helpdict.get(k))
ctrls[k,1].SetToolTipString(pronterface.helpdict.get(k)) ctrls[k,1].SetToolTipString(pronterface.helpdict.get(k))
grid.Add(ctrls[k,0],0,wx.BOTTOM+wx.RIGHT) grid.Add(ctrls[k,0],0,wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.ALIGN_RIGHT)
grid.Add(ctrls[k,1],1,wx.EXPAND) grid.Add(ctrls[k,1],1,wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.EXPAND)
topsizer.Add(self.CreateSeparatedButtonSizer(wx.OK+wx.CANCEL),0,wx.EXPAND) topsizer.Add(self.CreateSeparatedButtonSizer(wx.OK+wx.CANCEL),0,wx.EXPAND)
self.SetSizer(topsizer) self.SetSizer(topsizer)
topsizer.Layout() topsizer.Layout()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment