-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.py
31 lines (23 loc) · 973 Bytes
/
launch.py
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
#!/usr/bin/env python3
# Copyright © 2020-2024, Meheret Tesfaye Batu <[email protected]>
# 2024, Abenezer Lulseged Wube <[email protected]>
# 2024, Eyoel Tadesse <[email protected]>
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit
from PySide6.QtWidgets import QApplication
from PySide6.QtGui import QPalette, QColor
from PySide6.QtCore import Qt
import sys
from src.main import MainApplication
def main() -> None:
qapp: QApplication = QApplication(sys.argv)
palette = QPalette()
palette.setColor(QPalette.Active, QPalette.Text, QColor(255, 255, 255))
palette.setColor(QPalette.Disabled, QPalette.Text, QColor(170, 170, 170))
qapp.setPalette(palette)
qapp.setStyle("Windows")
main_application: MainApplication = MainApplication()
main_application.app.show()
sys.exit(qapp.exec())
if __name__ == '__main__':
main()