toolbar.AddLabelTool(ID_PROJECT_OPEN, "Open", bmp_open) toolbar.AddLabelTool(ID_PROJECT_SAVE, "Save", bmp_save) toolbar.AddLabelTool(ID_PROJECT_SAVEAS, "SaveAs", bmp_saveas) toolbar.AddSeparator() toolbar.SetToolShortHelp(ID_PROJECT_NEW, "New project") toolbar.SetToolShortHelp(ID_PROJECT_OPEN, "Open project") toolbar.SetToolShortHelp(ID_PROJECT_SAVE, "Save project") toolbar.SetToolShortHelp(ID_PROJECT_SAVEAS, "Save As project") toolbar.Realize() return toolbar class MyApp(wx.App): def OnInit(self): wx.InitAllImageHandlers() frameMain = PyAUIFrame(None, -1, "") self.SetTopWindow(frameMain) frameMain.Show() return 1 if __name__ == "__main__": if not (EXCEPT_DEBUG): exceptlog.add_exception_hook(get_app_path(), APP_VERSION, __email__) App = MyApp(0) App.MainLoop()
def run_gui(): if not(EXCEPT_DEBUG) : exceptlog.add_exception_hook(get_app_path(), APP_VERSION, __email__) App = MyApp(0) App.MainLoop()
toolbar.SetToolShortHelp(ID_PROJECT_SAVEAS, "Save As project") toolbar.Realize() return toolbar class MyApp(wx.App): def OnInit(self): wx.InitAllImageHandlers() frameMain = PyAUIFrame(None, -1, "") self.SetTopWindow(frameMain) frameMain.Show() return 1 if __name__ == "__main__": if not(EXCEPT_DEBUG) : exceptlog.add_exception_hook(get_app_path(), APP_VERSION, __email__) App = MyApp(0) App.MainLoop()