import trio
import hotkeys
async def main():
await hotkeys.run([
# Alt+a
('Mod1', 'a', lambda: print('A Press'), lambda: print('A Release')),
# Alt+b
('Mod1', 'b', lambda: print('B Press'), lambda: print('B Release')),
])
trio.run(main)
-
Notifications
You must be signed in to change notification settings - Fork 0
dj-foxxy/python-trio-hotkeys
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Easy X11 hotkeys for Python and Trio.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published