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

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/CAD_p8v2OYpxk3Qg7qni4%2Bd5f%3D9w_K6nBaftoaTo2Q62bmEmLxw%40mail.gmail.com.

Reply via email to