--- a/LPCBeremiz.py Tue Dec 01 13:48:47 2009 +0100
+++ b/LPCBeremiz.py Wed Dec 02 13:07:57 2009 +0100
@@ -688,9 +688,12 @@
frame = LPCBeremiz(None, plugin_root=plugin_root, debug=False)
plugin_root.SetAppFrame(frame, frame.Log)
frame.Show()
+ frame.Raise()
app.MainLoop()
+ frame = None
+
class StdoutPseudoFile:
""" Base class for file like objects to facilitate StdOut for the Shell."""
def write(self, s, style = None):
@@ -744,8 +747,10 @@
return self.Exit()
def Show(self):
- beremiz_thread=Thread(target=BeremizStartProc, args=[self.PluginRoot])
- beremiz_thread.start()
+ global frame
+ if frame is None:
+ beremiz_thread=Thread(target=BeremizStartProc, args=[self.PluginRoot])
+ beremiz_thread.start()
def Refresh(self):
global frame