mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-12-15 18:50:05 +01:00
* remove qtcompat * change imports * change codecov * add dep * run tests against dalthviz branch * update * more replace * pin pyside6 for sake of test * add deprecation * drop qt 5.11 * unpin pyside6
16 lines
428 B
Python
16 lines
428 B
Python
"""Example for QCollapsible"""
|
|
from qtpy.QtWidgets import QApplication, QLabel, QPushButton
|
|
|
|
from superqt import QCollapsible
|
|
|
|
app = QApplication([])
|
|
|
|
collapsible = QCollapsible("Advanced analysis")
|
|
collapsible.addWidget(QLabel("This is the inside of the collapsible frame"))
|
|
for i in range(10):
|
|
collapsible.addWidget(QPushButton(f"Content button {i + 1}"))
|
|
|
|
collapsible.expand(animate=False)
|
|
collapsible.show()
|
|
app.exec_()
|