We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ae531 commit 1b0d767Copy full SHA for 1b0d767
pyqt-calculator-tutorial/examples/hello.py
@@ -5,22 +5,15 @@
5
# 1. Import QApplication, and all the required widgets
6
from PyQt6.QtWidgets import QApplication, QLabel, QWidget
7
8
-WIN_X = 100
9
-WIN_Y = 100
10
-WIDTH = 280
11
-HEIGHT = 80
12
-LABEL_X = 60
13
-LABEL_Y = 15
14
-
15
# 2. Create an instance of QApplication
16
app = QApplication(sys.argv)
17
18
# 3. Create an instance of your application's GUI
19
window = QWidget()
20
window.setWindowTitle("PyQt App")
21
-window.setGeometry(WIN_X, WIN_Y, WIDTH, HEIGHT)
+window.setGeometry(100, 100, 280, 80)
22
helloMsg = QLabel("<h1>Hello, World!</h1>", parent=window)
23
-helloMsg.move(LABEL_X, LABEL_Y)
+helloMsg.move(60, 15)
24
25
# 4.Show your application's GUI
26
window.show()
0 commit comments