Part of vmc.contrib.ValidatedEntry View In Hierarchy
Create instance of validating gtk.Entry.
valid_func: the function to validate input. See module doc
string for details.
max: passed to gtk.Entry constructor. (default: 0)
use_bg: if True (the default) set the base color of the
widget to indicate validity; see valid_bg and partial_bg.
valid_bg: a gtk.gdk.Color; the base color of the widget when
the input is valid. (default: white)
partial_bg: a gtk.gdk.Color; the base color of the widget when
the input is partially valid. (default: yellow)
error_func: a function to call (with no arguments) when
valid_func returns INVALID. If None (the default)
the default action will be to emit a short beep.