diff --git a/pyqtgraph/debug.py b/pyqtgraph/debug.py index 1d12e9e0..15d1fb3c 100644 --- a/pyqtgraph/debug.py +++ b/pyqtgraph/debug.py @@ -5,14 +5,21 @@ Copyright 2010 Luke Campagnola Distributed under MIT/X11 license. See license.txt for more information. """ + from __future__ import print_function import sys, traceback, time, gc, re, types, weakref, inspect, os, cProfile, threading +import warnings from . import ptime from numpy import ndarray -from .Qt import QtCore, QtGui -from .util.mutex import Mutex +from .Qt import QtCore, QT_LIB from .util import cprint +if sys.version.startswith("3.8") and QT_LIB == "PySide2": + from .Qt import PySide2 + if tuple(map(int, PySide2.__version__.split("."))) < (5, 14): + warnings.warn("Due to PYSIDE-1140, ThreadChase and ThreadColor won't work") +from .util.mutex import Mutex + __ftraceDepth = 0 def ftrace(func):