From 65a57e1f8c02003918d3217fe592429a1736e321 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 7 Mar 2024 17:39:50 +0800 Subject: [PATCH] gui.applets: add setattr_argument_procdesc --- artiq/gui/applets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/gui/applets.py b/artiq/gui/applets.py index de282c846..6d128b7a1 100644 --- a/artiq/gui/applets.py +++ b/artiq/gui/applets.py @@ -68,9 +68,11 @@ class EntryArea(QtWidgets.QTreeWidget): self.bottom_item.setHidden(True) def setattr_argument(self, key, processor, group=None, tooltip=None): + self.setattr_argument_procdesc(key, processor.describe(), group, tooltip) + + def setattr_argument_procdesc(self, key, procdesc, group=None, tooltip=None): argument = dict() - desc = processor.describe() - argument["desc"] = desc + argument["desc"] = procdesc argument["group"] = group argument["tooltip"] = tooltip self._arguments[key] = argument