Setting cursor colors in tkinter
Edward K. Ream
edream at tds.net
Fri Sep 20 09:36:23 EDT 2002
Hi,
I would like to set the foreground an background colors of a cursor.
Following:
http://www.tcl.tk/man/tcl8.3/TkLib/GetCursor.htm#M4
I am synthesizing a cursor description with
cursor="xterm " + fg + " " + bg
yielding, e.g.,
cursor = "xterm red green"
I then call:
body.configure(cursor=cursor)
However, Tcl complains:
self.tk.call((self._w, 'configure')
TclError: bad cursor spec "xterm red green"
Can anyone say how this should properly be done? Put another way, I may be
asking what the proper format of
"name [fgColor [bgColor]]"
is in the URL above.
Thanks.
Edward
--------------------------------------------------------------------
Edward K. Ream email: edream at tds.net
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------
More information about the Python-list
mailing list