Skip to content

Commit 975fd1b

Browse files
fix: potential bug related to widgets in PyVistaBackendInterface class (#433)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 8826c3a commit 975fd1b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix: potential bug related to widgets in \`PyVistaBackendInterface\` class

src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ def add_widget(self, widget: Union[PlotterWidget, List[PlotterWidget]]):
225225
"""
226226
if isinstance(widget, list):
227227
self._widgets.extend(widget)
228-
widget.update()
228+
for w in widget:
229+
w.update()
229230
else:
230231
self._widgets.append(widget)
231232
widget.update()

0 commit comments

Comments
 (0)