Tkinter cursor
Eric Brunel
eric.brunel at pragmadev.com
Fri Jan 17 04:01:28 EST 2003
Xiao-Qin Xia wrote:
> Hi, everybody,
>
> Is it possible to make your own cursor icons when use Tkinter to design
> interface?
Yes, you can, but what you can do depends on what platform you're on. See:
http://www.tcl.tk/man/tcl8.3/TkLib/GetCursor.htm#M5
Basically:
- The first form (cursor="<cursor name>") works everywhere.
- The second and third ones (cursor="@<path to cursor file> [<path to mask
file>] <fg color> [<bg color>]") work only on Unix and accept files in XBM
format, as created by the utility bitmap.
- The third form (cursor="@<cursor file>") works only on Windows and accepts
.CUR or .ANI files
HTH
--
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
More information about the Python-list
mailing list