Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holding spacebar on button widget permanently makes it SUNKEN even after release (and wait). #84678

Closed
PythonAmateur742 mannequin opened this issue May 4, 2020 · 4 comments
Labels
topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@PythonAmateur742
Copy link
Mannequin

PythonAmateur742 mannequin commented May 4, 2020

BPO 40498
Nosy @ned-deily, @serhiy-storchaka, @E-Paine, @PythonAmateur742

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-06-13.04:05:53.177>
created_at = <Date 2020-05-04.11:23:16.130>
labels = ['type-bug', 'expert-tkinter']
title = 'Holding spacebar on button widget permanently makes it SUNKEN even after release (and wait).'
updated_at = <Date 2020-06-13.04:05:53.172>
user = 'https://github.com/PythonAmateur742'

bugs.python.org fields:

activity = <Date 2020-06-13.04:05:53.172>
actor = 'ned.deily'
assignee = 'none'
closed = True
closed_date = <Date 2020-06-13.04:05:53.177>
closer = 'ned.deily'
components = ['Tkinter']
creation = <Date 2020-05-04.11:23:16.130>
creator = 'PythonAmateur742'
dependencies = []
files = []
hgrepos = []
issue_num = 40498
keywords = []
message_count = 4.0
messages = ['368036', '368037', '371348', '371434']
nosy_count = 5.0
nosy_names = ['gpolo', 'ned.deily', 'serhiy.storchaka', 'epaine', 'PythonAmateur742']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue40498'
versions = []

@PythonAmateur742
Copy link
Mannequin Author

PythonAmateur742 mannequin commented May 4, 2020

See my Stack Overflow question for an example code.

https://stackoverflow.com/questions/61588397/problems-with-tkinter-button-bindings-and-behaviour

Reproduction:

  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.

@PythonAmateur742 PythonAmateur742 mannequin added topic-tkinter type-bug An unexpected behavior, bug, or error labels May 4, 2020
@PythonAmateur742
Copy link
Mannequin Author

PythonAmateur742 mannequin commented May 4, 2020

This is a win10 issue. I haven't tried it on linux.

@E-Paine
Copy link
Mannequin

E-Paine mannequin commented Jun 12, 2020

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.

@ned-deily
Copy link
Member

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: https://core.tcl-lang.org/index.html

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-tkinter type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant