Change Cursor When Doing A Mouse Event
How to change the cursor for a mouse event (right click for example) in Python with Tkinter ? When I press the right click, the cursor is changing but when I release it, the cursor
Solution 1:
Bind an event to the release of the button which changes the cursor back to "dotbox"
using
canevas.bind("<ButtonRelease-3>", self.move_stop)
Then you don't need the <B3-Motion>
event, the cursor just stays "fleur"
until you release the button
In the code you posted, you need to replace every mention of canevas
to self.canevas
to be able to reference to it in the move_start
function (and any other class methods)
Post a Comment for "Change Cursor When Doing A Mouse Event"