Skip to content

BUG ... MAIN BUG -button interaction- #2722

@kalle07

Description

@kalle07

In Tkinter, the command associated with a button is only executed when the mouse button is released while the mouse pointer is still over the button. This behavior mimics the native GUI standards on platforms such as Windows and ensures that accidental clicks (e.g. pressing the button but dragging away before releasing it) do not trigger the action.

In contrast, CustomTkinter executes the button's command immediately when the mouse button is pressed, regardless of whether the cursor remains over the button when it is released. This subtle difference in interaction can affect the user experience, especially when trying to replicate the behavior of the native operating system.

to me, this is an internal BUG that can only be programmed by complicated commands like “mouse released” and “request coordinates”!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions