def start(*args): options = debugsession.start(*args) app = Application(options) app.console.start() app.main_window.show_all() if sys.argv[1:]: fn = sys.argv[-1] if os.path.exists(fn): app.launch(fn) gtk.main()
def start_embedded(*args): options = debugsession.start(*args) app = Application(viewfactory, options) app.console.start() app.main_window.show_all() parent.app = app if filename: fn = filename if os.path.exists(fn): app.launch(fn)