From f187caa54925847f877fdda9dc7f04550a8797d0 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 20 Nov 2014 13:00:57 -0500 Subject: [PATCH] Reduce minimum vertical size --- gui/characterSelection.py | 8 ++++---- gui/mainFrame.py | 4 ++-- gui/statsPane.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gui/characterSelection.py b/gui/characterSelection.py index bb4420ee7..855882e78 100644 --- a/gui/characterSelection.py +++ b/gui/characterSelection.py @@ -31,13 +31,13 @@ class CharacterSelection(wx.Panel): mainSizer = wx.BoxSizer(wx.HORIZONTAL) self.SetSizer(mainSizer) - mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Character: "), 0, wx.CENTER | wx.TOP | wx.RIGHT | wx.LEFT, 3) + mainSizer.Add(wx.StaticText(self, wx.ID_ANY, "Character: "), 0, wx.CENTER | wx.RIGHT | wx.LEFT, 3) # cache current selection to fall back in case we choose to open char editor self.charCache = None self.charChoice = wx.Choice(self) - mainSizer.Add(self.charChoice, 1, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.RIGHT | wx.LEFT, 3) + mainSizer.Add(self.charChoice, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.LEFT, 3) self.refreshCharacterList() @@ -56,11 +56,11 @@ class CharacterSelection(wx.Panel): self.btnRefresh.Bind(wx.EVT_BUTTON, self.refreshApi) self.btnRefresh.Enable(False) - mainSizer.Add(self.btnRefresh, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.RIGHT | wx.LEFT, 2) + mainSizer.Add(self.btnRefresh, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.LEFT, 2) self.skillReqsStaticBitmap = wx.StaticBitmap(self) self.skillReqsStaticBitmap.SetBitmap(self.cleanSkills) - mainSizer.Add(self.skillReqsStaticBitmap, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.RIGHT | wx.LEFT, 3) + mainSizer.Add(self.skillReqsStaticBitmap, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.LEFT, 3) self.Bind(wx.EVT_CHOICE, self.charChanged) self.mainFrame.Bind(GE.CHAR_LIST_UPDATED, self.refreshCharacterList) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index a47b6de21..471c7ef7d 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -166,7 +166,7 @@ class MainFrame(wx.Frame): self.statsPane = StatsPane(self) cstatsSizer.Add(self.statsPane, 0, wx.EXPAND) - mainSizer.Add(cstatsSizer, 0 , wx.EXPAND) + mainSizer.Add(cstatsSizer, 0, wx.EXPAND) self.SetSizer(mainSizer) @@ -214,7 +214,7 @@ class MainFrame(wx.Frame): def LoadMainFrameAttribs(self): - mainFrameDefaultAttribs = {"wnd_width":1000, "wnd_height": 700, "wnd_maximized": False} + mainFrameDefaultAttribs = {"wnd_width": 1000, "wnd_height": 680, "wnd_maximized": False} self.mainFrameAttribs = service.SettingsProvider.getInstance().getSettings("pyfaMainWindowAttribs", mainFrameDefaultAttribs) if self.mainFrameAttribs["wnd_maximized"]: diff --git a/gui/statsPane.py b/gui/statsPane.py index b1efe8322..6c378878c 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -79,7 +79,7 @@ class StatsPane(wx.Panel): mainSizer.Add(tp, 0, wx.EXPAND | wx.LEFT, 3) if i < maxviews - 1: - mainSizer.Add(wx.StaticLine(self, wx.ID_ANY, style=wx.HORIZONTAL), 0, wx.EXPAND | wx.ALL,2) + mainSizer.Add(wx.StaticLine(self, wx.ID_ANY, style=wx.HORIZONTAL), 0, wx.EXPAND | wx.TOP | wx.LEFT | wx.RIGHT, 2) i+=1 tp.OnStateChange(tp.GetBestSize())