Emit warning about pyside2 bug preventing loading

This commit is contained in:
Ogi Moore 2021-04-15 22:50:16 -07:00
parent e735d2d9b8
commit 52de9554bb

View File

@ -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):