mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
define function instead of lambda
This commit is contained in:
parent
ebfcd364cd
commit
d1243d74e3
1 changed files with 2 additions and 1 deletions
|
|
@ -578,7 +578,8 @@ class OptionalAction(QtWidgets.QWidgetAction):
|
|||
def set_option_tip(self, options):
|
||||
sep = "\n\n"
|
||||
if not options or not isinstance(options[0], AbstractAttrDef):
|
||||
mak = (lambda opt: opt["name"] + " :\n " + opt["help"])
|
||||
def mak(opt):
|
||||
return opt["name"] + " :\n " + opt["help"]
|
||||
self.option_tip = sep.join(mak(opt) for opt in options)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue