-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytalic_editor.py
40 lines (28 loc) · 932 Bytes
/
pytalic_editor.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_editor.py
This is the main entry point for the pyTalic editor. The editor is for
creating and editing character sets for use with pyTalic.
"""
import os
import sys
from PyQt5 import QtWidgets
from editor.control import edit_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 = edit_control.EditorController(1024, 768, "Pytalic Character Editor", script_path)
my_qt_ctrl.activate()
return my_qt_app.exec_()
main(sys.argv)