def OnInit(self): appTitle='NoOra' self.main = MainFrame.MainFrame(self,appTitle) self.main.SetSize((600,500)) self.main.CenterOnScreen() self.SetTopWindow(self.main) self.main.Show(True) return True
def main(): app = wx.App() config = Config() runner = AccessibleRunner(config) mainFrame = MainFrame(runner, config, title=MainFrame.WINDOW_TITLE) runner.setUI(mainFrame) app.MainLoop() del app cef.Shutdown()
def initApp(self): # project file given as arg filename = None # TODO: from args for f in sys.argv[1:]: filename = f break # main frame frame = MainFrame(filename, self.defaults, self.scene) self.frame = frame self.SetTopWindow(frame) frame.Show() # drop target setDropTargets(frame, frame, frame.dropFiles) # done return True
from gui import MainFrame from tkinter import * if __name__ == "__main__": root = Tk() app = MainFrame(master=root) app.mainloop()
#!/usr/bin/env python3 import gettext gettext.install('wcg', './locales') import sys print(sys.argv[0]) from wx import App from gui import MainFrame if __name__ == '__main__': app = App() frame = MainFrame() frame.Show() app.MainLoop()
from wx import App from gui import MainFrame app = App() MainFrame(None, size=(500, 325)) app.MainLoop()