|
From: Jeff H. <je...@ac...> - 2006-05-24 19:51:28
|
Joey Mukherjee wrote:
> Before we started converting programs to Tile, we were validating the
> contents of our entry boxes by changing the label and the entry
> contents to red. With tile, we can no longer do this. With the
> button, this probably makes sense. With the entry contents, I feel
> like it might still be nice to change this to red. Is it possible?
# Ttk style mapping for invalid entry widgets
style map TEntry -fieldbackground {invalid \#FFFFE0} \
-foreground {invalid \#FF0000}
style map TCombobox -fieldbackground {invalid \#FFFFE0} \
-foreground {invalid \#FF0000}
The background won't change on most platforms, but the foreground should on
all. The invalid state is handled by the entry widget on failed or valid
validation command.
Jeff
|