mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-04 11:21:09 +01:00
15 lines
439 B
Python
15 lines
439 B
Python
"""Example for QCollapsible"""
|
|
from superqt import QCollapsible
|
|
from superqt.qtcompat.QtWidgets import QApplication, QLabel, QPushButton
|
|
|
|
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_()
|