/ widget.py / pwRadio
- Radio widget class
- The radio widget class derives from pwThreeColumn so inherits all pwThreeColumn keywords. Also passes
keyword list for content widget, which area pwCheckboxes in this case
Arguments:
- obj: the object that contains the attribute associated with this field
- attr: the name of the attribute
- selList: the list of items to select from, organized as a list of tuples, where each tuple
contains a name,value pair. The name portion will be displayed as the checkbox label and the
value portion will be passwd on selection
Common Keywords:
- divClass: allows the user to override the class of the
- fieldSpecial: allows the user to add "special" HTML attributes to the output element
- id: overrides the HTML "id" attribute
- selectable: controls whether this field is selectable or not
- inputType: mostly for internal use -- overrides the type designation in the output hidden fields
pwThreeColumn Keywords:
- caption: the caption to be displayed in the "caption" area of the three columns. This may be
either text or a widget.
- help: help HREF associated with the caption
- example: the example to be displayed in the "example" area of the three columns. This may be either
text or a widget.
- layout: directs which layout approach to take: pure css or table + css
- layoutID: the ID to associate with the layout. Allows for different ID's between layout and content widgets.
- idArg: overrides the widget id
- visibility: is this widget visible? Used to allow content to "appear" depending on the action of other widgets.
Keywords:
- labelPosition: the position of the labels for each of the checkboxes
Default divClass: pwRadio
Methods
|
|
|
__init__
|
__init__ (
self,
obj,
attr,
selList,
**kwlist,
)
|
|
|