Dateien zu Teil 29

This commit is contained in:
Olli Graf
2025-02-16 14:39:34 +01:00
parent 6db74b04f5
commit 4d2b58b744
10 changed files with 245 additions and 0 deletions

26
teil29/mainwindow.py Executable file
View File

@@ -0,0 +1,26 @@
#! /usr/bin/python
#Datei: mainwindows.py
import sys
from PyQt6.QtCore import QSize, Qt
from PyQt6.QtWidgets import QApplication, QMainWindow, QPushButton
# Subclass QMainWindow to customize your application's main window
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("My App")
button = QPushButton("Bitte klicken")
# Set the central widget of the Window.
self.setCentralWidget(button)
app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec()