[Tkinter-discuss] Custom cursor?

Russell E. Owen rowen at cesmail.net
Thu Feb 24 20:08:14 CET 2005


I'd like to create a few custom cursors Tkinter (including a magnifying 
glass).

>From reading the documentation I could find, it appears that the only 
cross-platform way to specify cursors in Tk is using 
Tk_GetCursorFromData*.

Unfortunately, I can't seem to figure out how to run this from Tkinter. 
root.tk.call("Tk_GetCursorFromData") fails with invalid command name 
"Tk_GetCursorFromData".

Any suggestions?

-- Russell

*on unix one can allegedly use "@bitmapfile.xbm" as the cursor 
specifier, but this is not cross-platform and it didn't even work in my 
one test on unix.



More information about the Tkinter-discuss mailing list