Skip to content

Commit 5cc2a2e

Browse files
authored
Add files via upload
1 parent 8c57555 commit 5cc2a2e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

GUI/hello.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)