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)
|
self.bottom_item.setHidden(True)
|
||||||
|
|
||||||
def setattr_argument(self, key, processor, group=None, tooltip=None):
|
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()
|
argument = dict()
|
||||||
desc = processor.describe()
|
argument["desc"] = procdesc
|
||||||
argument["desc"] = desc
|
|
||||||
argument["group"] = group
|
argument["group"] = group
|
||||||
argument["tooltip"] = tooltip
|
argument["tooltip"] = tooltip
|
||||||
self._arguments[key] = argument
|
self._arguments[key] = argument
|
||||||
|
Loading…
Reference in New Issue
Block a user