Hi Emiliano, Thanks for your reply. Yes they are documented, but per my post what I am looking for is a PROGRAMATIC way that my application can get the list of colors, sort of like how in Python you can use dir(__builtin__) to get a list of all the built-in functions.
Cheers Cam Farnell On 14-02-16 01:33 PM, Emiliano Gavilan wrote:
El 16/02/2014 14:03, "Cam Farnell" <ms...@bitflipper.ca <mailto:ms...@bitflipper.ca>> escribió: > > 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. They are documented. http://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm Regards
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss