bugfix
This commit is contained in:
parent
5730dde321
commit
f0bf0ab866
@ -406,6 +406,7 @@ class Blocks(EventDispatcher):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def registedfunctionAction(self, widget, desc, *args):
|
def registedfunctionAction(self, widget, desc, *args):
|
||||||
|
target = self.getWidgetByIdPath(widget, desc.get('target','self'))
|
||||||
rf = RegisterFunction()
|
rf = RegisterFunction()
|
||||||
name = desc.get('rfname')
|
name = desc.get('rfname')
|
||||||
func = rf.get(name)
|
func = rf.get(name)
|
||||||
@ -417,7 +418,7 @@ class Blocks(EventDispatcher):
|
|||||||
d = self.getActionData(widget,desc)
|
d = self.getActionData(widget,desc)
|
||||||
params.update(d)
|
params.update(d)
|
||||||
print('registedfunctionAction(),params=',params)
|
print('registedfunctionAction(),params=',params)
|
||||||
func(*args, **params)
|
func(target, *args, **params)
|
||||||
|
|
||||||
def scriptAction(self, widget, desc, *args):
|
def scriptAction(self, widget, desc, *args):
|
||||||
script = desc.get('script')
|
script = desc.get('script')
|
||||||
|
Loading…
Reference in New Issue
Block a user