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

Update ctk_button.py #1995

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikaSchaechinger
Copy link

Little Update for the _clicked method.
self._on_leave gets None as an argument.

Reason:
By overwriting the _on_leave method, the code still works when the method does not have event=None

There were issues with a own method like this:

class Own_Button(ctk.CTkButton):
def _on_leave(event):
super()._on_leave(event)
# do some stuff

Little Update for the _clicked method.
self._on_leave gets None as an argument.

Reason:
By overwriting the _on_leave method, the code still works when the method does not have event=None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant