Skip to content

Commit

Permalink
Update qt_core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdelbeke authored Apr 2, 2024
1 parent 43693fe commit bb76158
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bqt/qt_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
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
print("BQT imported PySide6")
except ImportError:
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
print("BQT imported PySide2")
except ImportError:
print("BQT failed to import PySide")
pass

0 comments on commit bb76158

Please sign in to comment.