[tkinter][Windows]Unexpected state report for the tab key

Rob Cliffe rob.cliffe at btinternet.com
Mon Oct 25 08:13:46 EDT 2021



On 25/10/2021 02:57, Stefan Ram wrote:
> GetKeyState still returns that the tab key
>    is pressed after the tab key already has been released.
>    Well, how then am I going to make my slide show stop the
>    moment the key is being released?
>
>
Does tkinter allow you to trap KeyUp (and KeyDown) events?
(I'm not familiar with tkinter, but in wxpython you can.)
And if so, does trapping KeyUp solve the problem?
Best wishes
Rob Cliffe



More information about the Python-list mailing list