This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Holding spacebar on button widget permanently makes it SUNKEN even after release (and wait).
Type: behavior Stage: resolved
Components: Tkinter Versions:
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: PythonAmateur742, epaine, gpolo, ned.deily, serhiy.storchaka
Priority: normal Keywords:

Created on 2020-05-04 11:23 by PythonAmateur742, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg368036 - (view) Author: PythonAmateur742 (PythonAmateur742) Date: 2020-05-04 11:23
See my Stack Overflow question for an example code.


1. create a single button (even without command)
2. Use tab to navigate to the button.
3. Hold space for a bit.

result: Button is now SUNKEN. Even after clicking or pressing the space again.
msg368037 - (view) Author: PythonAmateur742 (PythonAmateur742) Date: 2020-05-04 11:24
This is a win10 issue. I haven't tried it on linux.
msg371348 - (view) Author: E. Paine (epaine) * Date: 2020-06-12 10:14
I agree this is a Windows issue (though I haven't tested on MacOS), but I don't think it is a tkinter issue. Running 'wish' on the following, behaves exactly the same:

pack [button .button1 -text {click me}]

Thank you for reporting this, but unless this behaviour is shown to be a tkinter issue (rather than Tk), I am of the opinion that this issue should be closed as 3rd party.
msg371434 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-06-13 04:05
I agree that, if the problem is reproducible with wish, it's not a tkinter issue (which is just a wrapper around Tk calls). You may want to pursue it with the Tk project:
Date User Action Args
2022-04-11 14:59:30adminsetgithub: 84678
2020-06-13 04:05:53ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg371434

resolution: third party
stage: resolved
2020-06-12 10:14:22epainesetnosy: + gpolo, serhiy.storchaka, epaine
messages: + msg371348
2020-05-04 11:24:32PythonAmateur742setmessages: + msg368037
2020-05-04 11:23:16PythonAmateur742create