Adding support for saving frame size while closing and restore it at next launch
authorlaurent
Thu, 21 Apr 2011 11:06:43 +0200
changeset 598 6c919bc1551d
parent 597 6fbfd3bf2927
child 599 c7be4d09c5f4
Adding support for saving frame size while closing and restore it at next launch
Beremiz.py
LPCBeremiz.py
--- a/Beremiz.py	Tue Apr 19 15:28:35 2011 +0200
+++ b/Beremiz.py	Thu Apr 21 11:06:43 2011 +0200
@@ -434,7 +434,6 @@
 
     def __init__(self, parent, projectOpen=None, buildpath=None, plugin_root=None, debug=True):
         IDEFrame.__init__(self, parent, debug)
-        self.Config = wx.ConfigBase.Get()
         self.Log = LogPseudoFile(self.LogConsole,self.RiseLogConsole)
         
         self.local_runtime = None
@@ -567,6 +566,9 @@
             if self.PluginRoot is not None:
                 self.PluginRoot.KillDebugThread()
             self.KillLocalRuntime()
+            
+            self.SaveFrameSize()
+            
             event.Skip()
         else:
             event.Veto()
--- a/LPCBeremiz.py	Tue Apr 19 15:28:35 2011 +0200
+++ b/LPCBeremiz.py	Thu Apr 21 11:06:43 2011 +0200
@@ -909,6 +909,8 @@
             self.PluginRoot.KillDebugThread()
             self.KillLocalRuntime()
             
+            self.SaveFrameSize()
+            
             lpcberemiz_cmd.Log.write("Closed\n")
             
         event.Veto()