equal
deleted
inserted
replaced
977 self.GenerateLocationTreeBranch(locations_infos, "root", location) |
977 self.GenerateLocationTreeBranch(locations_infos, "root", location) |
978 if not locations_infos["root"]["expanded"]: |
978 if not locations_infos["root"]["expanded"]: |
979 self.CollapseLocation(locations_infos, "root") |
979 self.CollapseLocation(locations_infos, "root") |
980 |
980 |
981 frame = None |
981 frame = None |
|
982 app = None |
|
983 |
|
984 def GetApp(): |
|
985 global app |
|
986 return app |
|
987 wx.GetApp = GetApp |
982 |
988 |
983 def BeremizStartProc(plugin_root): |
989 def BeremizStartProc(plugin_root): |
984 global frame |
990 global frame, app |
985 |
991 |
986 app = wx.PySimpleApp() |
992 app = wx.PySimpleApp() |
987 app.SetAppName('beremiz') |
993 app.SetAppName('beremiz') |
988 wx.InitAllImageHandlers() |
994 wx.InitAllImageHandlers() |
989 |
995 |
1011 frame.Raise() |
1017 frame.Raise() |
1012 |
1018 |
1013 app.MainLoop() |
1019 app.MainLoop() |
1014 |
1020 |
1015 frame = None |
1021 frame = None |
|
1022 app = None |
1016 |
1023 |
1017 class StdoutPseudoFile: |
1024 class StdoutPseudoFile: |
1018 """ Base class for file like objects to facilitate StdOut for the Shell.""" |
1025 """ Base class for file like objects to facilitate StdOut for the Shell.""" |
1019 def write(self, s, style = None): |
1026 def write(self, s, style = None): |
1020 if s != '': |
1027 if s != '': |