On 1/8/07, Jim Steil <[EMAIL PROTECTED]> wrote:
I'm pretty green here and am looking for a list of ALL of the attributes I
can set on a TextField.  I've been struggling with setting the value of the
Label field and just found that there is a 'label' attribute I can set.
This is not listed in the widget browser in the toolbox.  I also want to
control the style for the label field, but don't know if I can affect it.
I've gone through the widget intro on the docs site but can't seem to find a
comprehensive list of parameters I can pass to TextField.

most of the stuff you need is actually on the Widget class
here is a link to the docstring
http://trac.turbogears.org/browser/tags/1.0/turbogears/widgets/base.py#L77

as for the attributes themself the ones you really care are in the
template variable which ALL widgets have here is the one for TextField
http://trac.turbogears.org/browser/tags/1.0/turbogears/widgets/forms.py#L513

of course you can get all that from an interactive python shell.

I'm not exactly sure what you mean by not having everything on the
widget browser you want a TextField to show ALL atributes of all it's
parent classes? isn't that a huge waste of space? any suggestions on
how this can be improved? maybe add links on each widgets to each one
of their parents be a better solution. if you want to peak at the code
adding that should be a no brainer.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to