Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PYTHON 3] 1st draft
[modules/gui.git]
/
src
/
GUI_PY
/
dockwidgets.py
diff --git
a/src/GUI_PY/dockwidgets.py
b/src/GUI_PY/dockwidgets.py
index 08a9bc77be36580be2fd70d84c42f43e8ca8f1c9..5d43064240581fdc0140889da4d1412f6146a025 100644
(file)
--- a/
src/GUI_PY/dockwidgets.py
+++ b/
src/GUI_PY/dockwidgets.py
@@
-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