Basic fields

These are the most basic form widgets.

FormField

This is the base class of all fields that can be used as children of a Form or FieldSet.

class tw.forms.fields.FormField(*args, **kw)

Base class for all Widgets that can be attached to a Form or FieldSet.

Form and FieldSets are in turn FormFields so they can be arbitrarily nested. These widgets can provide a validator that should validate and coerce the input they generate when submitted.

InputField

class tw.forms.fields.InputField(*args, **kw)
Base class for <input> fields

TextField

class tw.forms.fields.TextField(*args, **kw)
A text field

TextArea

class tw.forms.fields.TextArea(*args, **kw)
Displays a textarea.

PasswordField

class tw.forms.fields.PasswordField(*args, **kw)
A password field.

HiddenField

class tw.forms.fields.HiddenField(*args, **kw)
A hidden field

FileField

class tw.forms.fields.FileField(*args, **kw)
A file upload field

CheckBox

class tw.forms.fields.CheckBox(*args, **kw)

RadioButton

class tw.forms.fields.RadioButton(*args, **kw)