On 11/1/05, Ian Bicking <[EMAIL PROTECTED]> wrote:
>
> Kevin Dangoor wrote:
> > You can instantiate a form like this:
> > myform = TableForm(widgets=[
> > widgets.TextField("name"),
> > widgets.TextField("address"),
> > widgets.TextField("age", default=0,
> > validator=validators.Int())])
>
> Isn't that just begging to be...
>
> class myform(TableForm):
> name = widgets.TextField()
> address = widgets.TextField()
> age = widgets.TextField(default=0, validator=validators.Int())
>
> ?
I don't think so. In this example, I'm not looking to create something
that creates forms (a class), I'm looking for a form itself (an
instance).
Kevin