Tkinter & misc. question (follow-up)

Eric Brunel eric.brunel at pragmadev.com
Fri Jan 11 05:44:23 EST 2002


Hi,

At first, a reference that always proves useful: the online manual for Tk
commands:
http://dev.scriptics.com/man/tcl8.2.3/TkCmd/contents.htm
where you find (following "options", "-cursor", then "Tk_GetCursor":
http://dev.scriptics.com/man/tcl8.2.3/TkLib/GetCursor.htm#M7
where you see that the "cursor" option may be typed as "@sourceName maskName
fgColor bgColor" or "@sourceName fgColor" (sourceName and maskName are names
of XBM files), but that "This form of the command will not work on Macintosh
or Windows computers." Sorry...
Maybe there's a portable way to do the same thing, but I don't know it...
 - eb -


"Lemniscate" <> a écrit dans le message news:
7396d2b2.0201101549.7ba37aab at posting.google.com...
> Okay, I've done some more research and found a reference to having a
> cursor point to an xbm.  I feel like a total tool, but how exactly do
> I do that in Tkinter?  Do I just plug in something like:
> <code>
> cursor = "\xbmimages\myimage.xbm"
> </code>
>
> If I have to, I suppose I try to get by like this, but is there anyway
> to get a non-xbm format in the same way (for example, use a bmp).  I
> already installed PIL (I've been 'requested' to put all sorts of
> images into my program) but only learned enough to get by so far.
> Normally, I would just work my way through it, but I need to make a
> report soon on what I can do and what I can't.  Thanks a lot.





More information about the Python-list mailing list