2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 13:13:34 +08:00

image: refactor data_changed

This commit is contained in:
Simon Renblad 2023-07-12 12:03:54 +08:00 committed by Sébastien Bourdeauducq
parent 25959d0cd6
commit b6a83904b5

View File

@ -11,9 +11,9 @@ class Image(pyqtgraph.ImageView):
pyqtgraph.ImageView.__init__(self)
self.args = args
def data_changed(self, data, mods):
def data_changed(self, value, metadata, persist, mods):
try:
img = data[self.args.img][1]
img = value[self.args.img]
except KeyError:
return
self.setImage(img)