TomSchimansky / TomSchimansky/CustomTkinter
Issue with cursor changing on button
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
The cursor will not follow the cursor specified when hovered over a button with a function attached to it.
Lets assume we have a simple piece of code:
from customtkinter import *
def random_func():
print("uhh hi?")
root = CTk()
CTkButton(root, text="I cannot change the hover cursor!", command=random_func, cursor="arrow").pack()
root.mainloop()
Even when I set the cursor to arrow, the cursor is still the link-select when my mouse hovers over it. This only happens when a function is attached to it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the Python reproduction from the issue with a CTkButton, command callback, and cursor="arrow". Trace CTkButton's cursor handling and verify that the cursor remains an arrow while hovering over a button with a function attached.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100