src/aoikhotkey/util/cmd.py
def SpecSwitch(spec_id):
    """
    Create hotkey function that switches hotkey spec.

    :param spec_id: Hotkey spec ID or index.

    :return: Hotkey function.
    """
    # Create hotkey function that switches hotkey spec
    func = partial(spec_switch, spec_id)

    # Add `call in main thread` tag
    func = tag_call_in_main_thread(func)

    # Return the hotkey function
    return func

    Create hotkey function that switches hotkey spec.

    :param spec_id: Hotkey spec ID or index.

    :return: Hotkey function.
    
Create hotkey function that switches hotkey spec.
Create hotkey function that switches hotkey spec .
def SpecSwitch(spec_id):
    func = partial(spec_switch, spec_id)
    func = tag_call_in_main_thread(func)
    return func
def SpecSwitch ( spec_id ) : func = partial ( spec_switch , spec_id ) func = tag_call_in_main_thread ( func ) return func
Create hotkey function that switches hotkey spec.
Create hotkey function that switches hotkey spec .
"""
    Create hotkey function that switches hotkey spec.

    :param spec_id: Hotkey spec ID or index.

    :return: Hotkey function.
    """ # Create hotkey function that switches hotkey spec # Add `call in main thread` tag # Return the hotkey function
None
spec_id
Hotkey spec ID or index.
Hotkey spec ID or index .