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())
评论列表
文章目录