Hey Valentina,
Here's a bit of code to help illustrate what Ogi is describing, for the case where the one window has a signal handler.
```python
class A(QtWidget):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._data_plot_in_window_b = None
def set_data_plot_to_update(self, plot):
self._data_plot_in_window_b = plot
def handleKeyPressEvent(self, ev):
if ev.key() == Qt.Key_Up and self._data_plot_in_window_b is not None:
self._data_plot_in_window_b.setData(self.some_new_data())
def some_new_data(self):
return np.random.normal(size=self._data_plot_in_window_b.shape)
a = A()
a.set_data_plot_to_update(b.plot)
```
Good luck,
- Martin