-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (32 loc) · 987 Bytes
/
main.py
File metadata and controls
41 lines (32 loc) · 987 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
29
30
31
32
33
34
35
36
37
38
39
40
41
import cgitb
import sys
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from qt_material import apply_stylesheet
from ui.base.baseWindow import BaseWindow
from utils import fileutils
from common.logger import Logger
logger = Logger(level="info").logger
def showGui():
app = QApplication(sys.argv)
extra = {
# Button colors
'danger': '#dc3545',
'warning': '#ffc107',
'success': '#17a2b8',
# Font
'font_size': '12px',
'line_height': '12px',
}
cgitb.enable(format='text')
apply_stylesheet(app, 'dark_teal.xml', invert_secondary=True, extra=extra)
w = BaseWindow()
w.resize(1920, 1080)
w.setWindowTitle("Anget")
w.setWindowIcon(QIcon(fileutils.getResPath("images", "hollyland.png")))
w.show()
sys.exit(app.exec_())
def startAgentService(testSuitFiles: list, testDevices: list, testReportPath: str):
pass
if __name__ == '__main__':
showGui()