Exemplo n.º 1
0
def _get_all_keybinding_methods(type_):
    obj_methods = set(super(type_, type_).class_keymap.values())
    obj_methods.update({v.__name__ for v in type_.class_keymap.values()})
    obj_methods.update({
        a.command.__name__
        for a in action_manager._get_layer_actions(type_).values()
    })
    return obj_methods
Exemplo n.º 2
0
def _get_all_keybinding_methods(type_):
    obj_methods = set(super(type_, type_).class_keymap.values())
    obj_methods.update(type_.class_keymap.values())

    # need to get methods in action_manager
    am_methods = action_manager._get_layer_actions(type_)
    for name, action in am_methods.items():
        obj_methods.add(action.command)
    return obj_methods