Adding support for saving frame size while closing and restore it at next launch
--- 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()