-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
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”!