-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (19 loc) · 806 Bytes
/
Copy pathmain.py
File metadata and controls
26 lines (19 loc) · 806 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
import sys
from PySide6.QtWidgets import QApplication
from ui.main_window import MainWindow
from ui.theme import DARK_STYLE
# --- ДОБАВИТЬ ЭТОТ БЛОК ДЛЯ ОТОБРАЖЕНИЯ ИКОНКИ НА ПАНЕЛИ ЗАДАЧ WINDOWS ---
if sys.platform == 'win32':
import ctypes
# Указываем Windows уникальный идентификатор нашего приложения (AppID)
myappid = 'mycompany.xmlexecutor.app.1.0'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
# ------------------------------------------------------------------------
def main():
app = QApplication(sys.argv)
app.setStyleSheet(DARK_STYLE)
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()