diff options
Diffstat (limited to 'src/main.py')
-rw-r--r-- | src/main.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..293ec8d --- /dev/null +++ b/src/main.py @@ -0,0 +1,22 @@ +import sys +from PyQt5 import QtCore, QtWidgets +import sqlite3 +import os.path + +import db.init +import gui.window + +database = db.init.init('database') +app = QtWidgets.QApplication(sys.argv) + +# # Allows to catch Ctrl-C event +# timer = QtCore.QTimer() +# timer.timeout.connect(lambda: None) +# timer.start(100) + +window = gui.window.get(database) +window.show() +res = app.exec_() + +database.close() +sys.exit(res) |