Tkinter & misc. question (follow-up)
eric.brunel at pragmadev.com
Fri Jan 11 11:44:23 CET 2002
At first, a reference that always proves useful: the online manual for Tk
where you find (following "options", "-cursor", then "Tk_GetCursor":
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:
> cursor = "\xbmimages\myimage.xbm"
> 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