How do I change font color in DirectEntry

How do I change font color in DirectEntry? I use:


But it did not work.

I’m not sure that it works for DirectEntry, but have you tried the “text_fg” property, either at instantiation or later?

For example:

myEntry = DirectEntry(<params...>, text_fg=(1, 1, 0, 1)) # Yellow

myEntry["text_fg"] = (0, 1, 0, 1) # Green

thank you, Thaumaturge
I read manual, but I cannot find about text_fg.
How do I get all param in DirectEntry or other Direct GUI?

I don’t know whether every keyword is given there, but between the various pages it looks as though they have a fair few of them.

It seems that the page that describes DirectGUI in general gives the common keywords - “text_fg” included - and that, for brevity’s sake, they’re not repeated on the various sub-pages.

thank you, Thaumaturge