-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytalic2.py
40 lines (28 loc) · 905 Bytes
/
pytalic2.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
pytalic_project.py
This is the main entry point for the pyTalic project tool. The project tool is for
creating pyTalic projects.
"""
import os
import sys
from PyQt5 import QtWidgets
from project.control import pytalic_control
class PytalicEditorApp(QtWidgets.QApplication):
"""
PytalicEditorApp
the main Qt Application class
"""
def __init__(self, args):
QtWidgets.QApplication.__init__(self, args)
QtWidgets.qApp = self
def main(args=None):
"""the main entry point"""
# bump up stack depth due to pickle failure
sys.setrecursionlimit(10000)
my_qt_app = PytalicEditorApp(args)
script_file_path = os.path.realpath(__file__)
script_path = os.path.split(script_file_path)[0]
my_qt_ctrl = pytalic_control.PytalicController(1024, 768, "Pytalic", script_path)
my_qt_ctrl.activate()
return my_qt_app.exec_()
main(sys.argv)