We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c57555 commit 5cc2a2eCopy full SHA for 5cc2a2e
GUI/hello.py
@@ -0,0 +1,24 @@
1
+# hello.py
2
+
3
+"""Simple Hello, World example with PyQt6."""
4
5
+import sys
6
7
+# 1. Import QApplication and all the required widgets
8
+from PyQt6.QtWidgets import QApplication, QLabel, QWidget
9
10
+# 2. Create an instance of QApplication
11
+app = QApplication([])
12
13
+# 3. Create your application's GUI
14
+window = QWidget()
15
+window.setWindowTitle("Sakshi App")
16
+window.setGeometry(100, 100, 580, 580)
17
+helloMsg = QLabel("<h1>Hello! Sakshi</h1>", parent=window)
18
+helloMsg.move(580, 580)
19
20
+# 4. Show your application's GUI
21
+window.show()
22
23
+# 5. Run your application's event loop
24
+sys.exit(app.exec())
0 commit comments