-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (18 loc) · 699 Bytes
/
main.py
File metadata and controls
25 lines (18 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import sys
from PyQt4 import QtCore, QtGui
from app import DrawApplication
#from language.lang import LanguageManager
from draw import DrawMainWindow
def main(*args):
app = DrawApplication(sys.argv)
# Set Qt plugin path manually (to help py2exe find them)
qt_lib_paths = QtCore.QCoreApplication.libraryPaths()
qt_lib_paths.append(QtCore.QCoreApplication.applicationDirPath() + "/plugins")
QtCore.QCoreApplication.setLibraryPaths(qt_lib_paths)
# Install translator
lang = app.get_language_manager()
lang.select("English")
window = DrawMainWindow(lang)
return app.exec_()
if __name__ == "__main__":
sys.exit(main(*sys.argv))