### Facts * Currently mostly directly mapped to `tkinter` API. * The `bind_direct_key` is the exception. * Makes adapting to different backends non-trivial, probably. ### Idea * Simplify the API. * Create a `bind_key` taking a "single letter" key argument: * Optional `on_press=True`, `on_release=False` arguments. * Optional `direct` boolean flag for the current `bind_direct_key` behaviour. * 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. * Create a a few mouse input focused methods: clicks, movement, scroll? * Maybe a few Window related events: focus/unfocus/move/resize/minimize/restore/hide?
Facts
tkinterAPI.bind_direct_keyis the exception.Idea
bind_keytaking a "single letter" key argument:on_press=True,on_release=Falsearguments.directboolean flag for the currentbind_direct_keybehaviour.