There is a "disabled" boolean attribute for (x)html that serves this
purpose. The resulting html would look something like:
<input name="foo" disabled>Some Text</input>
Try adding "disabled=True" to the attributes for that widget, or even
better set it to a value passed into the code that creates the widget.
Your instantiation may look something like this:
text_field = TextBox(name="foo",
attrs=dict(disabled=True),
...)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---