You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
605 B
Python

2 years ago
from PyQt5.QtWidgets import QApplication, QStyleFactory
from UI.MainWindow import MainWindow, CommonHelper
2 years ago
from model.ClientModel.Client import Client
2 years ago
2 years ago
from utils import Globals
2 years ago
import time
import sys
if __name__ == '__main__':
app = QApplication(sys.argv)
2 years ago
app.setStyle(QStyleFactory.create('windowsvisio'))
2 years ago
app.setStyleSheet(CommonHelper.readQss('static/main.qss') + CommonHelper.readQss('static/Area.qss'))
2 years ago
Globals._init()
2 years ago
Client.initDB()
2 years ago
window = MainWindow()
2 years ago
window.showMaximized()
2 years ago
Globals.setValue('MainWindow', window)
2 years ago
# window.show()
2 years ago
sys.exit(app.exec_())