Tkinter Widgets Needed
Sean Doull-Connolly
seandc at att.net
Sun Feb 18 16:39:35 EST 2001
Does anyone know of widgets I can use to
build data-entry tools for a database:
1. Number Entry
Passed parameters:
Given value (as text string)
Length
Number of decimals
Displays
The given value with the decimal
point in the correct spot
Accepts
Only legal input (eg 0-9 and .)
Example:
ne = NumberEntry(MasterFrame, ('9999.99', 10, 2))
....
returnval = ne.get()
2. Date Entry
Passed parameters:
Given value (as text string)
Century ON/OFF
Displays
The given value with the date
correctly formatted
Accepts
Only legal input (eg 0-9 and /)
and parses the date (Zeller?) to
ensure date is real
Example:
de = DateEntry(MasterFrame, ('20010218', ON))
....
returnval = de.get()
Thanks.
Sean
seandc at att.net
More information about the Python-list
mailing list