mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-07-21 12:11:07 +02: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_()
|