Skip to content

Commit

Permalink
Fixed the qt example so it works with PySide6
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Feb 9, 2022
1 parent c9f8c37 commit edf021a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/schedulers/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
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():
Expand Down

0 comments on commit edf021a

Please sign in to comment.