summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2022-02-10 01:05:12 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2022-02-10 01:05:12 +0200
commitedf021aa37a5e1bb2985c428fa91e5448e0ef4ec (patch)
tree26a613dc3aa790d054631cb17eeb2257619ac670
parentc9f8c37533bbe5019df7f9a45d2a2ea39a39a66c (diff)
downloadapscheduler-edf021aa37a5e1bb2985c428fa91e5448e0ef4ec.tar.gz
Fixed the qt example so it works with PySide6
-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():