forked from M-Labs/artiq
gui.applets: add setattr_argument_procdesc
This commit is contained in:
parent
c4323e1179
commit
65a57e1f8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user