Salome HOME
updated copyright message
[modules/gui.git] / src / GUI_PY / dockwidgets.py
index e6e10bcf9a8038850715fcdfb43aa42374f55833..b61404055ce8343e62e27cd3756002ac28cff5de 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2023  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -17,8 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from qtsalome import *
 
 import SalomePyQt
 
@@ -44,7 +43,7 @@ def findDockWidgetByTitle( title ):
     """
     sg = SalomePyQt.SalomePyQt()
     dwl = sg.getDesktop().findChildren( QDockWidget )
-    dw = filter(lambda a: a.windowTitle() == QString( title ), dwl)
+    dw = [a for a in dwl if a.windowTitle() == str( title )]
     if dw: return dw[0]
     return None