By0ute / pyqt-collapsible-widget

PyQt collapsible widget in the spirit of the Maya frameLayout command
MIT License
56 stars 16 forks source link

PyQt Collapsable Widget

A PyQt collapsable widget in the spirit of the Maya frameLayout command

Why ?

Because if there is no widget collapsable in PyQt (until Qt5). But the Maya cmds has a UI command called frameLayout that makes its content collapsable. Inside a PyQt design, for consistency, I made this code to create a collapsable widget. With the help from this post, especially this chunk.

How does it look?

Here you can see the result in a standard Python application

PyQt Collapsable Widget in Python standalone

Here you can see the result from a Maya window

PyQt Collapsable Widget in Maya

Hope you'll enjoy it!, :kissing_cat:

By0ute :princess: