Salome HOME
updated copyright message
[modules/gui.git] / src / GUI_PY / dockwidgets.py
index 08a9bc77be36580be2fd70d84c42f43e8ca8f1c9..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
@@ -43,7 +43,7 @@ def findDockWidgetByTitle( title ):
     """
     sg = SalomePyQt.SalomePyQt()
     dwl = sg.getDesktop().findChildren( QDockWidget )
-    dw = filter(lambda a: a.windowTitle() == str( title ), dwl)
+    dw = [a for a in dwl if a.windowTitle() == str( title )]
     if dw: return dw[0]
     return None