Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
545 B
2
Indexable
Never
async def on_press(key):
    if (key == Key.shift):
        print("Left")
        await basic_transcribe()
    elif (key == Key.shift_r):
        print("Right")
        await basic_transcribe()

globals.transcriptFile = open('transcript.txt', 'w+')
cccedict.createInMemoryDictionary()

# with Listener(
#         # assuppress=True,
#         on_press=on_press
# ) as listener:
#     listener.join()

listener = Listener(on_press=on_press)
listener.start()

loop = asyncio.get_event_loop()
loop.run_until_complete(basic_transcribe())
loop.close()