diff --git a/artiq/examples/no_hardware/repository/custom_applet.py b/artiq/examples/no_hardware/repository/custom_applet.py index 1f197ffbb..0bc124325 100644 --- a/artiq/examples/no_hardware/repository/custom_applet.py +++ b/artiq/examples/no_hardware/repository/custom_applet.py @@ -4,13 +4,13 @@ from artiq.applets.simple import SimpleApplet class DemoWidget(QtWidgets.QLabel): - def __init__(self, args): + def __init__(self, args, ctl): QtWidgets.QLabel.__init__(self) self.dataset_name = args.dataset - def data_changed(self, data, mods): + def data_changed(self, value, metadata, persist, mods): try: - n = str(data[self.dataset_name][1]) + n = str(value[self.dataset_name]) except (KeyError, ValueError, TypeError): n = "---" n = "" + n + ""