import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QLabel
def main():
# Create the application
app = QApplication(sys.argv)
# Create a main window
window = QMainWindow()
window.setWindowTitle('My First GUI')
window.setGeometry(100, 100, 300, 200) # Set window size (x, y, width, height)
# Create a label widget
label = QLabel('Hello, World!', window)
label.setGeometry(100, 80, 200, 30) # Set label position and size
# Show the window and run the application
window.show()
sys.exit(app.exec())
if __name__ == '__main__':
main()