backend, frontends: callbacks refactoring:
- launchAction is now async, and return a dictionary for its result
- no more action_id, actionResult* are deprecated
- callback system is about to be unified
This commit is contained in:
parent
aa8ca0772c
commit
069a250b04
1 changed files with 151 additions and 78 deletions
|
|
@ -129,9 +129,7 @@ class Param(wx.Frame):
|
|||
self.__save_parameters()
|
||||
name, category = event.GetEventObject().param_id
|
||||
callback_id = event.GetEventObject().callback_id
|
||||
data = {"name":name, "category":category, "callback_id":callback_id}
|
||||
id = self.host.bridge.launchAction("button", data, profile_key = self.host.profile)
|
||||
self.host.current_action_ids.add(id)
|
||||
self.host.launchAction(callback_id, None, profile_key = self.host.profile)
|
||||
event.Skip()
|
||||
|
||||
def __save_parameters(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue