TomSchimansky / TomSchimansky/CustomTkinter

Issue with cursor changing on button

Open
#592 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.