-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (24 loc) · 908 Bytes
/
main.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
32
33
34
35
36
from PySide6.QtWidgets import (
QWidget, QHBoxLayout
)
import sys
from qtharmony.widgets import *
from qtharmony.windows import MainWindow
from qtharmony.constructor import Initialization
from qtharmony.core.theme import ThemeManager
from qtharmony.core.sizes import *
Initialization.init(sys.argv)
ThemeManager.change_theme("Light-Default")
class Window(QWidget):
def __init__(self) -> None:
super().__init__()
self.mainLayout = QHBoxLayout()
# self.mainLayout.addWidget(PushButton("hello", SizeGroup(MinimalSize(height=100), MaximalSize(width=100))))
# self.mainLayout.addWidget(PictureWidget("qtharmony/resources/ui/Icon.png"))
self.textbox = TextBox()
self.mainLayout.addWidget(self.textbox)
self.setLayout(self.mainLayout)
if __name__ == "__main__":
window = MainWindow(Window())
window.run()
Initialization.exec()