mirror of
https://github.com/ColinDuquesnoy/QDarkStyleSheet.git
synced 2026-08-30 00:50:30 +08:00
Changing future warning to pending deprecation warning - fixes #125
This commit is contained in:
@@ -55,7 +55,7 @@ import copy
|
||||
if sys.version_info >= (3, 4):
|
||||
import importlib
|
||||
|
||||
__version__ = "2.6.5"
|
||||
__version__ = "2.6.6"
|
||||
|
||||
|
||||
QT_BINDINGS = ['PyQt4', 'PyQt5', 'PySide', 'PySide2']
|
||||
@@ -211,7 +211,7 @@ def load_stylesheet(pyside=True):
|
||||
warnings.warn(
|
||||
"load_stylesheet() will not receive pyside parameter in version 3. "
|
||||
"Set QtPy environment variable to specify the Qt binding insteady.",
|
||||
FutureWarning
|
||||
PendingDeprecationWarning
|
||||
)
|
||||
# Smart import of the rc file
|
||||
|
||||
@@ -222,7 +222,7 @@ def load_stylesheet(pyside=True):
|
||||
# Detect the PySide version available
|
||||
try:
|
||||
import PySide
|
||||
except ImportError: # Compatible with py27
|
||||
except ImportError: # Compatible with py27
|
||||
import PySide2
|
||||
pyside_ver = 2
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user