# How to tie widgets (vtkAbstractWidget) together?

**URL:** https://discourse.vtk.org/t/how-to-tie-widgets-vtkabstractwidget-together/12222
**Category:** Support
**Tags:** python
**Created:** [August 31, 2023, 7:46am UTC](https://discourse.vtk.org/t/how-to-tie-widgets-vtkabstractwidget-together/12222 "2023-08-31T07:46:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![somso2e](https://discourse.vtk.org/user_avatar/discourse.vtk.org/somso2e/32/7322_2.png) [@somso2e](https://discourse.vtk.org/u/somso2e)
#### Post date: [August 31, 2023, 7:46am UTC](https://discourse.vtk.org/t/how-to-tie-widgets-vtkabstractwidget-together/12222/1 "2023-08-31T07:46:28Z")

</div>

I need to sync widgets’ actions that are in multiple renderwindows together. Upon first inspection, vtkWidgetSet seemed to be the right choice for this but as I understand now, the implementation hasn’t been touched in years and basically only barely works for a single widget type (vtkParallelopipedWidget) and it completely doesn’t work in Python. [Related GitLab issue](https://gitlab.kitware.com/vtk/vtk/-/issues/17079)

Any advice on doing this in python? I thought about making a custom callback similar to [this example](https://gitlab.kitware.com/vtk/vtk/-/blob/v9.2.6/Examples/GUI/Qt/FourPaneViewer/QtVTKRenderWindows.cxx#L37-113) which ties 3 instance of vtkResliceCursorWidget and vtkImagePlaneWidget together and generalize it for infinite number of widgets and other types of vtkAbstractWidget but I’m not entirely sure!

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Adrian\_Staniec](https://discourse.vtk.org/user_avatar/discourse.vtk.org/adrian_staniec/32/9638_2.png) [@Adrian\_Staniec](https://discourse.vtk.org/u/Adrian_Staniec)
#### Post date: [December 30, 2024, 2:19pm UTC](https://discourse.vtk.org/t/how-to-tie-widgets-vtkabstractwidget-together/12222/2 "2024-12-30T14:19:18Z")

</div>

Hi somso,  
Have you managed any progress on this issue?
