-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (28 loc) · 905 Bytes
/
main.py
File metadata and controls
35 lines (28 loc) · 905 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
import sys
from theme.styles import setupTheme
from PySide6.QtWidgets import QApplication
from PySide6.QtGui import QIcon
from consts.consts import WINDOW_ICON_PATH
from components.main_window import MainWindow
from components.account_info import AccountInfo
from components.display import Display
from components.buttons import Button, ButtonsGrid
if __name__ == "__main__":
app = QApplication(sys.argv)
setupTheme()
window = MainWindow()
icon = QIcon(str(WINDOW_ICON_PATH))
app.setWindowIcon(icon)
window.setWindowIcon(icon)
# Display Header
accountInfo = AccountInfo()
window.addWidgetToMainLayout(accountInfo)
# Display
display = Display()
window.addWidgetToMainLayout(display)
# Buttons Grid
buttonsGrid = ButtonsGrid(display, accountInfo, window)
window.addLayoutToMainLayout(buttonsGrid)
window.adjustFixedSize()
window.show()
app.exec()