From e9062074d10f5676080873f7d291aa0dba4d99c8 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sun, 5 Dec 2010 20:06:46 +0200 Subject: [PATCH] Save only pyfa's width/height on exist --- gui/mainFrame.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 7610cc50b..dc1e8f026 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -139,16 +139,12 @@ class MainFrame(wx.Frame): def LoadMainFrameAttribs(self): - mainFrameDefaultAttribs = {"wnd_x" : 10, "wnd_y" : 10, "wnd_width":1000, "wnd_height": 700} + mainFrameDefaultAttribs = {"wnd_width":1000, "wnd_height": 700} self.mainFrameAttribs = service.SettingsProvider.getInstance().getSettings("pyfaMainWindowAttribs", mainFrameDefaultAttribs) width = self.mainFrameAttribs["wnd_width"] height = self.mainFrameAttribs["wnd_height"] - x = self.mainFrameAttribs["wnd_x"] - y = self.mainFrameAttribs["wnd_y"] - - self.SetPosition((x, y)) self.SetSize((width, height)) self.SetMinSize((mainFrameDefaultAttribs["wnd_width"], mainFrameDefaultAttribs["wnd_height"])) @@ -160,8 +156,6 @@ class MainFrame(wx.Frame): self.mainFrameAttribs["wnd_width"] = width self.mainFrameAttribs["wnd_height"] = height - self.mainFrameAttribs["wnd_x"] = x - self.mainFrameAttribs["wnd_y"] = y def SetActiveStatsWindow(self, wnd): self.activeStatsWnd = wnd