Pmw.EntryField() - entry widget with validation
This class consists of an entry widget with optional validation and an optional upper limit on the number of characters which may be entered. Built-in validation may be used, such as integer, real or alphabetic, or an external validation function may be supplied.
invoke() is called. The default is None.
If None, a label component is not created. The default is None.
setentry(). The default is None.
numeric integer >= 0
integer any integer, negative, 0 or positive
hexadecimal hex number (optionally with leading 0x)
real number with or without a decimal point
alphabetic letters a-zA-Z
alphanumeric letters a-zA-Z and digits
timeN HH:MM:SS (may be negative)
time24 HH:MM:SS (between 00:00:00 and 23:59:59)
date_dmy DD/MM/YY
date_mdy MM/DD/YY
date_ymd YY/MM/DD
- YY may be any number of digits If validate is a function, then it will be called whenever the
contents of the entry may have changed due to user action or by a
call to setentry(). The function is called with one argument,
being the new text as modified by the user or setentry(). It
should return 1 if the text is valid. It should return 0 if
the text is invalid and the entry should be restored to its
previous value. It should return -1 if the text is invalid and
should be displayed using the errorbackground color.
If validate is None, no validation is performed. The default is None.
Home. Pmw 0.6.2 Maintainer gregm@iname.com. 23 Feb 1998