Skip to content

EsoCoding/PySide6-Collapsible-Widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySide6 Collapsible Widget/ frameLayout

Simple collapsible widget for PySide6, made to mimic Maya's native GUI. Its Forked from https://github.com/aronamao/PySide2-Collapsible-Widget rewritten for PySide6.

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

  • Python 99.9%
  • Other 0.1%