You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
559 B
26 lines
559 B
#! /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()
|
|
|