-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Milestone
Description
Facts
- Currently mostly directly mapped to
tkinterAPI. - The
bind_direct_keyis the exception. - Makes adapting to different backends non-trivial, probably.
Idea
- Simplify the API.
- Create a
bind_keytaking a "single letter" key argument:- Optional
on_press=True,on_release=Falsearguments. - Optional
directboolean flag for the currentbind_direct_keybehaviour. - Will need to support non-letter keys, somehow (cursor keys, space, functions keys, backspace, etc).
- Should support modifiers: shift, control, alt, command, meta, windows, etc.
- Optional
- Create a a few mouse input focused methods: clicks, movement, scroll?
- Maybe a few Window related events: focus/unfocus/move/resize/minimize/restore/hide?