Created
November 10, 2024 16:20
-
-
Save tlambert03/7027fc453485d231303bd1188e36b692 to your computer and use it in GitHub Desktop.
example PyQt6 hello for uv testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt6.QtWidgets import QApplication, QWidget, QLabel, QGridLayout | |
app = QApplication(sys.argv) | |
widget = QWidget() | |
grid = QGridLayout() | |
text_label = QLabel() | |
text_label.setText("Hello World!") | |
grid.addWidget(text_label) | |
widget.setLayout(grid) | |
widget.setGeometry(100, 100, 200, 50) | |
widget.setWindowTitle("uv") | |
widget.show() | |
sys.exit(app.exec()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment