[Tkinter-discuss] Custom cursor?

Jeff Epler jepler at unpythonic.net
Fri Feb 25 16:15:13 CET 2005


On Thu, Feb 24, 2005 at 04:08:24PM -0700, Stewart Midwinter wrote:
> Actually on Windows it gives an exception but you're probably close on
> the config options.

The length-4 version is X only.  "This form of the command will not work
on Macintosh or Windows computers" -- man Tk_GetCursor

This is the version that works on Windows:
    % . configure -cursor @treeview.cur ;# wish, tested
or
    t.configure(cursor="@treeview.cur")  # python + tkinter, not tested
(treeview.cur is a cursor file that I found in the BLT source directory,
but any Windows-format .cur or .ani file is supposed to work)

Keep in mind that these filenames are always relative to the working
directory, not necessarily to the location of your script or the Python
executable.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tkinter-discuss/attachments/20050225/a20b19ad/attachment.pgp


More information about the Tkinter-discuss mailing list