예제 #1
0
파일: main.py 프로젝트: tux21b/plover
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
파일: main.py 프로젝트: ohAitch/plover
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