Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PySide6 #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a simple collapsable section for QT. It has been tested with QT5.6.

Special thanks to "x squared" who has posted the original code for this idea at StackOverflow: http://stackoverflow.com/a/37119983/2573127

A python version is available, using PyQt5, as Section.py.
A python version is available, using PyQt5 or PySide6, as Section.py.

## Sample Code

Expand Down
8 changes: 6 additions & 2 deletions Section.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
along with Elypson/qt-collapsible-section. If not, see <http:#www.gnu.org/licenses/>.
'''

import PyQt5.QtCore as cr
import PyQt5.QtWidgets as wd
try:
import PySide6.QtCore as cr
import PySide6.QtWidgets as wd
except:
import PyQt5.QtCore as cr
import PyQt5.QtWidgets as wd
# import PyQt5.QtGui as gui
import sys

Expand Down