Пример #1
0
def main(config):
    # Setup internationalization support.
    install_gettext()
    use_qt_notifications = not log.has_platform_handler()
    app = Application(config, use_qt_notifications)
    code = app.run()
    del app
    return code
Пример #2
0
def main(config):
    # Setup internationalization support.
    install_gettext()
    use_qt_notifications = not log.has_platform_handler()
    app = Application(config, use_qt_notifications)
    code = app.run()
    del app
    return code
Пример #3
0
def main(config, controller):
    # Setup internationalization support.
    use_qt_notifications = not log.has_platform_handler()
    # Log GUI exceptions that make it back to the event loop.
    if sys.excepthook is sys.__excepthook__:
        sys.excepthook = default_excepthook
    app = Application(config, controller, use_qt_notifications)
    code = app.run()
    del app
    return code