mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-12-13 09:50:05 +01:00
* wip * add toggleswitch * style: [pre-commit.ci] auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
518 B
518 B
QToggleSwitch
QToggleSwitch is a
QAbstractButton subclass
that represents a boolean value as a toggle switch. The API is similar to
QCheckBox but with a different
visual representation.
from qtpy.QtWidgets import QApplication
from superqt import QToggleSwitch
app = QApplication([])
switch = QToggleSwitch()
switch.show()
app.exec_()
{{ show_widget(80) }}
{{ show_members('superqt.QToggleSwitch') }}