aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
blob: 293ec8da681736f36b2b8c22ea31e6fb510183de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)