Brian Cole schrieb:
> My TableForms are dynamically generated so I needed to set the checked
> state upon instantiation. I tried using the value parameter during
> object creation:
> for_widget = CheckBox(name="your_checkbox",  value=True,
> help_text="Just click me...")

Use the "default" parameter. For your use case that seems ok, because,
if I understand you correctly, you are dynamically generating forms that
have different default values for certain fields.

If you just want to change the value of a widget instance at display
time, you'd use the value parameter to the render/display method. But
already knew that, didn't you? ;-)

For an overview of the default widget parameters and the static nature
of widget instances, please see

http://docs.turbogears.org/1.0/WidgetsOverview#setting-widget-parameters

Chris

--~--~---------~--~----~------------~-------~--~----~
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