Tkinter color names/codes
Cameron Laird
claird at lairds.com
Fri Jan 23 13:04:12 EST 2004
In article <1012mti57i1nsa5 at corp.supernews.com>, I confused matters with:
.
.
.
> >>> import Tkinter
> >>> l = Tkinter.Label()
> >>> l.winfo_rgb("red")
> (65535, 0, 0)
.
.
.
Ugh. I'm revealing a bad habit I acquired in my Python childhood.
What I *should* have suggested was
import Tkinter
Tkinter.Tk().winfo_rgb("cyan")
The Label() and l chatter was just a distraction, for which I
apologize.
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list