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:
parent
25959d0cd6
commit
b6a83904b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user