]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/GUI_PY/dockwidgets.py
Salome HOME
PyQt5/PyQt4 support
[modules/gui.git] / src / GUI_PY / dockwidgets.py
index 8bd579758ea87d66e50c013bbdf03c0bb9fecbeb..2d370e905e73e70ef95c60dda72842f0335baf9e 100644 (file)
@@ -1,5 +1,4 @@
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from qtsalome import *
 
 import SalomePyQt
 
@@ -25,7 +24,7 @@ def findDockWidgetByTitle( title ):
     """
     sg = SalomePyQt.SalomePyQt()
     dwl = sg.getDesktop().findChildren( QDockWidget )
-    dw = filter(lambda a: a.windowTitle() == QString( title ), dwl)
+    dw = filter(lambda a: a.windowTitle() == str( title ), dwl)
     if dw: return dw[0]
     return None