Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung | ||
talit:python_pyqt_no_oop [2021-08-28 08:52] – angelegt sca | talit:python_pyqt_no_oop [2021-08-28 09:00] (aktuell) – sca | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
# Python GUI Apps mit PyQt5 (ohne OOP) | # Python GUI Apps mit PyQt5 (ohne OOP) | ||
+ | |||
+ | Das folgende Programm erstellt ein einfaches | ||
<code python> | <code python> | ||
Zeile 37: | Zeile 39: | ||
sys.exit(app.exec_()) # properly exits python program when closing pyqt app | sys.exit(app.exec_()) # properly exits python program when closing pyqt app | ||
</ | </ | ||
+ | |||
+ | Es stehen viele **weitere Widgets** zur Verfügung wie: | ||
+ | |||
+ | |**Widget**|**What it does**| | ||
+ | |QCheckbox|A checkbox| | ||
+ | |QComboBox|A dropdown list box| | ||
+ | |QDateEdit|For editing dates and datetimes| | ||
+ | |QDateTimeEdit|For editing dates and datetimes| | ||
+ | |QDial|Rotatable dial| | ||
+ | |QDoubleSpinbox|A number spinner for floats| | ||
+ | |QFontComboBox|A list of fonts| | ||
+ | |QLCDNumber|A quite ugly LCD display| | ||
+ | |QLabel|Just a label, not interactive| | ||
+ | |QLineEdit|Enter a line of text| | ||
+ | |QProgressBar|A progress bar| | ||
+ | |QPushButton|A button| | ||
+ | |QRadioButton|A toggle set, with only one active item| | ||
+ | |QSlider|A slider| | ||
+ | |QSpinBox|An integer spinner| | ||
+ | |QTimeEdit|For editing times| | ||
+ | |||
+ | |||
+ | |||
+ |