1
0
Fork 0
mirror of https://github.com/Athemis/PyDSF.git synced 2025-04-04 22:36:02 +00:00
pyDSF/main.py

21 lines
496 B
Python

#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import glob
from PyQt5 import QtWidgets, QtCore
from ui.mainwindow import MainWindow
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
translationFiles = glob.glob("i18n/*.qm")
translator = QtCore.QTranslator()
for translationFile in translationFiles:
translator.load(translationFile)
app.installTranslator(translator)
ui = MainWindow()
ui.show()
sys.exit(app.exec_())