Skip to content

Commit

Permalink
support pyside6
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdelbeke committed Oct 4, 2023
1 parent 27a916b commit 34c9188
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bqt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@


bl_info = {
"name": "PySide2 Qt wrapper (bqt)",
"description": "Enable PySide2 QtWidgets in Blender",
"name": "PySide Qt wrapper (bqt)",
"description": "Enable PySide QtWidgets in Blender",
"author": "tech-artists.org",
"version": (1, 3, 0),
"blender": (2, 80, 0),
Expand Down
19 changes: 15 additions & 4 deletions bqt/qt_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
from PySide2 import QtCore
from PySide2.QtCore import Qt, QEvent, QObject, QRect, QSettings, QTimer, QDir
from PySide2.QtWidgets import QApplication, QWidget, QMainWindow, QDockWidget, QMessageBox
from PySide2.QtGui import QCloseEvent, QIcon, QWindow, QImage, QPixmap
try:
from PySide6 import QtCore
from PySide6.QtCore import Qt, QEvent, QObject, QRect, QSettings, QTimer, QDir
from PySide6.QtWidgets import QApplication, QWidget, QMainWindow, QDockWidget, QMessageBox
from PySide6.QtGui import QCloseEvent, QIcon, QWindow, QImage, QPixmap
except ImportError:
pass

try:
from PySide2 import QtCore
from PySide2.QtCore import Qt, QEvent, QObject, QRect, QSettings, QTimer, QDir
from PySide2.QtWidgets import QApplication, QWidget, QMainWindow, QDockWidget, QMessageBox
from PySide2.QtGui import QCloseEvent, QIcon, QWindow, QImage, QPixmap
except ImportError:
pass
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run(self):
setup(
# Metadata
name="bqt",
version="1.3.6",
version="1.4.0",
description="Files to help bootstrap PySide2 with an event loop within Blender.",
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -56,7 +56,7 @@ def run(self):
# Requirements
python_requires=">=3.7",
packages=["bqt"],
install_requires=["PySide2", "blender-qt-stylesheet"],
install_requires=["PySide6", "blender-qt-stylesheet"],
# Package Data
include_package_data=True,
package_data={"bqt": ["*.png", "*.qss"]},
Expand Down

0 comments on commit 34c9188

Please sign in to comment.