This is a Tk limitation I believe. I remember looking into it years ago and it appeared that it cannot change the cursor until you move the mouse. I always tell people in workshops to move the mouse before checking the cursor for edit mode or not. It *might* have something to do with how macOS handles it;'s cursors but I think it also applies to the various Linux windowing systems too. Someone can chime in on that.
On Nov 9, 2024, at 12:00 PM, pd-dev-request@lists.iem.at wrote:
By the way, I'm always bothered by the fact that the cursor does not automatically change to a hand when getting into edit mode, we do need to move the mouse so it can be aware. I wonder if it's because it uses this 'canvas_doclick' function. Nonetheless, when getting out of edit mode, it goes back to the arrow cursor just fine. I will open an issue about this, I hope there is a way to listen to the edit status and make this transition better.
-------- Dan Wilcox danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Am 9. November 2024 13:43:51 MEZ schrieb Dan Wilcox danomatika@gmail.com:
This is a Tk limitation I believe. I remember looking into it years ago and it appeared that it cannot change the cursor until you move the mouse. I always tell people in workshops to move the mouse before checking the cursor for edit mode or not. It *might* have something to do with how macOS handles it;'s cursors but I think it also applies to the various Linux windowing systems too. Someone can chime in on that.
No, it works fine on Linux (and I believe Windows too): switching to edit mode immediately changes the cursor. Only on macOS it doesn't work.
OTOH, I'm currently afk and cannot check.
mfg.sfg.jfd IOhannes
On Sat, 2024-11-09 at 15:13 +0100, IOhannes m zmölnig wrote:
Am 9. November 2024 13:43:51 MEZ schrieb Dan Wilcox danomatika@gmail.com:
This is a Tk limitation I believe. I remember looking into it years ago and it appeared that it cannot change the cursor until you move the mouse. I always tell people in workshops to move the mouse before checking the cursor for edit mode or not. It *might* have something to do with how macOS handles it;'s cursors but I think it also applies to the various Linux windowing systems too. Someone can chime in on that.
No, it works fine on Linux
Confirmed.
Only on macOS it doesn't work.
Confirmed. Only switching _to_ edit mode requires the pointer to be moved to update the cursor icon. Switching _from_ edit mode updates immediately.
Roman
No, it works fine on Linux (and I believe Windows too): switching to edit mode immediately changes the cursor.
also works on windows. btw pressing ctrl only changes the cursor - which makes sense, because then it's possible to click somewhere as outside of edit mode.