コード例 #1
0
def main():
    # Note: The order in which the splash screen is initiated and the
    # main app is instantiated is very important:
    # - windows raises an error if wx.App is called too late
    # - ubuntu does not like wx.App before the splash screen
    
    # Start the splash screen in a separate process
    
    splash = mp.Process(target=splash_show)
    splash.start()

    sys.path.insert(0, dirname(dirname(abspath(__file__))))
    from shapeout.__main__ import prepare_app
    app = prepare_app()

    # close the splash screen
    splash.terminate()
    # launch application
    app.frame.InitRun()
    app.MainLoop()
コード例 #2
0
def main():
    # Note: The order in which the splash screen is initiated and the
    # main app is instantiated is very important:
    # - windows raises an error if wx.App is called too late
    # - ubuntu does not like wx.App before the splash screen
    
    # Start the splash screen in a separate process
    
    splash = mp.Process(target=splash_show)
    splash.start()

    sys.path.insert(0, dirname(dirname(abspath(__file__))))
    from shapeout.__main__ import prepare_app
    app = prepare_app()

    # close the splash screen
    splash.terminate()
    # launch application
    app.frame.InitRun()
    app.MainLoop()
コード例 #3
0
 def setUp(self):
     '''Create the GUI'''
     self.app = prepare_app()
     self.frame = self.app.frame
コード例 #4
0
ファイル: test_gui_batch.py プロジェクト: chrherold/ShapeOut
 def setUp(self):
     '''Create the GUI'''
     self.app = prepare_app()
     self.frame = self.app.frame
コード例 #5
0
def test_final():
    from shapeout.__main__ import prepare_app
    prepare_app()