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
digit-only tag values are mishandled in Tkinter #41677
Comments
It appears that most Tkinter tag operations fail on >>> from Tkinter import *
>>> root=Tk()
>>> c=Canvas(root)
>>> c.create_line(0,0,100,100, tags="123")
1
>>> c.gettags(1)
('123',)
>>> c.pack()
>>> c.find_withtag("123")
() tkinter docs: only say this about tag values: So this behaviour seems like a bug. |
Logged In: YES This is a documentation bug. The Tk documentation says Furthermore, the site www.pythonware.com is a third-party I recommend closing this bug and notifying pythonware.com / |
Logged In: YES Here's the text before the quoted line: "Everywhere a method expects an item specifier, you can Note the use of "one of", and the fact that item handles are |
Logged In: YES
While I can see how a very careful reader might notice that
Actually for whatever reason I thought that pythonware.com I guess it does bring an interesting question for Fredrik... |
I don't see the bug here. items in a Canvas may be named either as id or In your case you have an item with id "1", and when you do: c.find_withtag("123") Tk tries to find an item with that id, which doesn't exist and returns |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: