summaryrefslogtreecommitdiff
path: root/lib/taurus/external/qt/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/taurus/external/qt/compat.py')
-rw-r--r--[-rwxr-xr-x]lib/taurus/external/qt/compat.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/taurus/external/qt/compat.py b/lib/taurus/external/qt/compat.py
index 735c207f..df105614 100755..100644
--- a/lib/taurus/external/qt/compat.py
+++ b/lib/taurus/external/qt/compat.py
@@ -41,4 +41,12 @@ getOpenFileName = getattr(QFileDialog, 'getOpenFileNameAndFilter',
getOpenFileNames = getattr(QFileDialog, 'getOpenFileNamesAndFilter',
QFileDialog.getOpenFileNames)
-del QFileDialog \ No newline at end of file
+# Provide a common constant for the PyObject name (to be used in signal
+# signatures)
+from taurus.external.qt import PYQT5, PYQT4
+if PYQT5 or PYQT4:
+ PY_OBJECT = 'PyQt_PyObject'
+else:
+ PY_OBJECT = 'PyObject'
+
+del QFileDialog, PYQT5, PYQT4 \ No newline at end of file