-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (23 loc) · 682 Bytes
/
Copy pathmain.py
File metadata and controls
28 lines (23 loc) · 682 Bytes
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
from PyQt5.QtWidgets import(
QApplication, QMainWindow
)
from PyQt5.uic import loadUi
from PyQt5.QtGui import QIcon
import os, sys, configparser
from windows.setupWizard import CriptySetupWizard
from windows.login import CriptyLoginWindow
if __name__ == "__main__":
#Setup Application
app = QApplication(sys.argv)
#check configuration file
if(os.path.exists(".config")):
cfg = configparser.ConfigParser()
cfg.read(".config")
if(cfg.sections()):
window = CriptyLoginWindow()
else:
window = CriptySetupWizard()
else:
window = CriptySetupWizard()
window.show()
app.exec_()