Previous Next blank.gif blank.gif

Class Input - General Form Input tags.


SYNOPSIS

import HTMLgen
class Input
  def __init__(self, **kw)
  string __module__ = 'HTMLgen'
  def __str__(self)
  RegexObject re_type = <re.RegexObject instance a ...

Keyword Arguments

type
'TEXT' (default) Supported types include password, checkbox, radio, file, submit, reset, hidden.
name
provides the datum name
value
the initial value of the input item
checked
flag indicating if the item is checked initially
size
size of the widget (e.g. size=10 for a text widget is it's width)
maxlength
maximum number of characters accepted by the textfield.
border
border width in pixels for an image type.
align
top|middle|bottom align w.r.t. adjoining text for image types.
llabel
an optional string set to the left of the widget
rlabel
an optional string set to the right of the widget
onBlur
script, which is executed, when the field loses focus, useful for the text-type
onChange
script, which is executed, when the field value changed, useful for the text-type
onClick
script, which is executed, when the field in clicked, useful for the button, checkbox, radio, submit, reset type
onFocus
script, which is executed, when the field receives focus, useful for the text-type
onSelect
script, which is executed, when part of the field is selected, useful for the text-type

SEE ALSO

HTMLgen


Previous Next blank.gif blank.gif
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999