Skip to content

aronamao/PySide2-Collapsible-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PySide2 Collapsible Widget/ frameLayout

Simple collapsible widget for PySide2, made to mimic Maya's native GUI

demo

How to use

Simply get the content widget via the contentWidget getter and attach your desired layout to it.

layout = QtWidgets.QVBoxLayout()
container = Container("Group")
layout.addWidget(container)

content_layout = QtWidgets.QGridLayout(container.contentWidget)
content_layout.addWidget(QtWidgets.QPushButton("Button"))

This example is also available in the docstring of the Container class for easy access inside your IDE.

The Container class also has methods for collapsing, expanding and toggling the widget so you can hook them up to external buttons.

About

Simple collapsible widget for PySide2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages