Exemple #1
0
def set_enabled(enable):
    if enable:
        talon.enable()
        app.icon_color(0, 0.7, 0, 1)
    else:
        talon.disable()
        app.icon_color(1, 0, 0, 1)
    lib.menu_check(b'!Enable Speech Recognition', enable)
def disable_talon():
    talon.disable()
    app.icon_color(1, 0, 0, 1)
    lib.menu_check(b'!Enable Speech Recognition', False)