app.py 文件源码

python
阅读 42 收藏 0 点赞 0 评论 0

项目:SiviCNCDriver 作者: Klafyvel 项目源码 文件源码
def main():
    """
    The main function of the application.

    It will create a QApplication and a main window then run the application and
    exit.
    """
    app = QApplication(sys.argv)

    qtTranslator = QTranslator()
    translate_path = os.path.join(
        settings.TRANSLATE_DIR,
        "SiviCNCDriver_" + QLocale.system().name()
    )
    qtTranslator.load(translate_path)
    app.installTranslator(qtTranslator)

    window = MainWindow()
    window.show()
    sys.exit(app.exec())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号