Bug on LPCBeremiz when wxPopen asking for Yield after reopening of a Beremiz window fixed
authorlaurent
Tue, 15 Dec 2009 10:04:33 +0100
changeset 514 d36a89dcd21c
parent 513 feb2acb04070
child 515 022e034bd4b8
Bug on LPCBeremiz when wxPopen asking for Yield after reopening of a Beremiz window fixed
LPCBeremiz.py
--- a/LPCBeremiz.py	Tue Dec 15 10:01:26 2009 +0100
+++ b/LPCBeremiz.py	Tue Dec 15 10:04:33 2009 +0100
@@ -979,9 +979,15 @@
                 self.CollapseLocation(locations_infos, "root")
 
 frame = None
+app = None
+
+def GetApp():
+    global app
+    return app
+wx.GetApp = GetApp
 
 def BeremizStartProc(plugin_root):
-    global frame
+    global frame, app
 
     app = wx.PySimpleApp()
     app.SetAppName('beremiz')
@@ -1013,6 +1019,7 @@
     app.MainLoop()
 
     frame = None
+    app = None
 
 class StdoutPseudoFile:
     """ Base class for file like objects to facilitate StdOut for the Shell."""