33 from python_qt_binding
import QT_BINDING
34 from python_qt_binding.QtCore
import qWarning
38 if QT_BINDING ==
'pyside':
39 from .
import libqt_gui_cpp_shiboken
40 qt_gui_cpp = libqt_gui_cpp_shiboken.qt_gui_cpp
42 elif QT_BINDING ==
'pyqt':
43 from .
import libqt_gui_cpp_sip
44 qt_gui_cpp = libqt_gui_cpp_sip.qt_gui_cpp
47 raise ImportError(
'Qt binding name "%s" is unknown.' % QT_BINDING)
51 qWarning(
'Could not import "%s" bindings of qt_gui_cpp library - so C++ plugins will not be '
52 'available:\n%s' % (QT_BINDING, traceback.format_exc()))