Tkinter cursor question

Gary Richardson garyr at fidalgo.net
Sun Sep 21 10:52:02 EDT 2003


[snip]
>
> @sourceName
>     This form only works on Windows, and will load a Windows system cursor
> (.ani or .cur) from the file specified in sourceName.
>
> Kindly
> MichaelP
>
Michael,

Thanks for your reply. I am using Windows so I guess I'm out of luck as far
as designing my own cursor. I tried the form that is supposed to work with
windows but no luck with that either. The code below produces the error
message:  TclError: bad cursor spec "@CROSS_M.CUR". I also tried using the
full pathname ("@C:\windows\cursors\cross_m.cur" and
"@c:\\windows\\cursors\\CROSS_M.CUR") but the result was the same. Any
further advice?

Thanks,
Gary Richardson
-------------
from Tkinter import *
root=Tk()
Text(root,bg="white",cursor="@CROSS_M.CUR").pack()
root.mainloop()











More information about the Python-list mailing list