diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-02-10 01:05:12 +0200 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-02-10 01:05:12 +0200 |
commit | edf021aa37a5e1bb2985c428fa91e5448e0ef4ec (patch) | |
tree | 26a613dc3aa790d054631cb17eeb2257619ac670 /examples/schedulers/qt.py | |
parent | c9f8c37533bbe5019df7f9a45d2a2ea39a39a66c (diff) | |
download | apscheduler-edf021aa37a5e1bb2985c428fa91e5448e0ef4ec.tar.gz |
Fixed the qt example so it works with PySide6
Diffstat (limited to 'examples/schedulers/qt.py')
-rw-r--r-- | examples/schedulers/qt.py | 7 |
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(): |