[Tkinter-discuss] Standard colors

Bob van der Poel bob at mellowood.ca
Sun Feb 16 18:09:01 CET 2014


Try the file

   /etc/X11/rgb.txt


On Sun, Feb 16, 2014 at 9:36 AM, Cam Farnell <msa01 at bitflipper.ca> wrote:
> Hello all,
>
> Tkinter supports a bunch of standard colors, for example something like:
>
>         MyButton = Button(activebackground='red')
>
> works and somebody, somewhere, knows that 'red' means "#FF0000'.
>
> What I'm trying to find out is if there is a programatic way of getting a
> list of the colors that are available. Anyone know this offhand? A quick
> look through Tkinter.py was not overly illuminating. I'm using Python 2.7.2
> and whatever version of tk/tcl came with Ubuntu 12.04 LTS.
>
> Thanks
>
> Cam Farnell
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss



-- 
**** Listen to my FREE CD at http://www.mellowood.ca/music/cedars ****
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bob at mellowood.ca
WWW:   http://www.mellowood.ca


More information about the Tkinter-discuss mailing list