DirectButton: shifting text color on state?

Is there a way to specify that text_fg should be dependent upon state? The standard form of text_fg=(normalColor,clickedColor,mouseOverColor,disabledColor) doesn’t seem to work.

Take care,
Mark

You can do it this way:

b = DirectButton(text = label,
                 text0_fg = VBase4(1, 0, 0, 1),
                 text1_fg = VBase4(0, 1, 0, 1),
                 text2_fg = VBase4(0, 0, 1, 1),
                 text3_fg = VBase4(1, 1, 1, 1),
                 scale = 0.07,
                 )

David