mirror of
https://github.com/Athemis/PyDSF.git
synced 2025-04-04 14:26:03 +00:00
22 lines
593 B
Python
22 lines
593 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from PyQt5 import QtWidgets, QtCore
|
|
|
|
from ui.mainwindow import MainWindow
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
translator = QtCore.QTranslator()
|
|
# get system locale
|
|
systemLocale = QtCore.QLocale.system().name()
|
|
translationFile = "i18n/{}".format(systemLocale)
|
|
# load translation file and install translator
|
|
translator.load(translationFile)
|
|
app.installTranslator(translator)
|
|
# fire up main ui
|
|
ui = MainWindow()
|
|
ui.showMaximized()
|
|
sys.exit(app.exec_())
|