gui.applets: add setattr_argument_procdesc

This commit is contained in:
Simon Renblad 2024-03-07 17:39:50 +08:00
parent c4323e1179
commit 65a57e1f8c

View File

@ -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