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.
26 lines
773 B
Python
26 lines
773 B
Python
from PyQt5.QtWidgets import QApplication, QStyleFactory
|
|
from UI.Main.Main import MainWindow, CommonHelper
|
|
from utils import Globals
|
|
from model.ClientModel.Client import Client
|
|
from UI.RegisterWidgets.RegisterWidget import RegisterWidget
|
|
from model.ClientModel.RegisterManage import Register
|
|
import time
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = QApplication(sys.argv)
|
|
app.setStyle(QStyleFactory.create('Fusion'))
|
|
app.setStyleSheet(CommonHelper.readQss('static/main.qss'))
|
|
reg = Register()
|
|
if not reg.checkLicense():
|
|
regWidget = RegisterWidget()
|
|
regWidget.show()
|
|
else:
|
|
Globals._init()
|
|
Client.initDB()
|
|
ex = MainWindow()
|
|
Globals.setValue('MainWindow', ex)
|
|
ex.show()
|
|
sys.exit(app.exec_()) |