summaryrefslogtreecommitdiff
path: root/examples/schedulers/qt.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/schedulers/qt.py')
-rw-r--r--examples/schedulers/qt.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/schedulers/qt.py b/examples/schedulers/qt.py
index af29b5e..e59b14a 100644
--- a/examples/schedulers/qt.py
+++ b/examples/schedulers/qt.py
@@ -16,9 +16,12 @@ except ImportError:
from PyQt4.QtGui import QApplication, QLabel
except ImportError:
try:
- from PySide2.QtWidgets import QApplication, QLabel
+ from PySide6.QtWidgets import QApplication, QLabel
except ImportError:
- from PySide.QtGui import QApplication, QLabel
+ try:
+ from PySide2.QtWidgets import QApplication, QLabel
+ except ImportError:
+ from PySide.QtGui import QApplication, QLabel
def tick():