Package Camelot :: Package camelot :: Package view :: Module forms :: Class VBoxForm |
[frames] | no frames]

# Class VBoxForm

source code

Render different forms or widgets in a vertical box:

    form = forms.VBoxForm([['title', 'short_description'], ['director', 'release_date']])

Instance Methods
__init__(self, rows) of the horizontal box | source code
replaceField(self, original_field, new_field) Replace a field on this form with another field. This function can be used to modify inherited forms. | source code
__unicode__(self) | source code
render(*args, **kwargs) of (label, widget editor) | source code
Inherited from `Form`: `add_field`, `get_fields`, `removeField` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, rows) (Constructor) | source code
of the horizontal box Parameters: `rows` - a list of forms to display in the different columns Overrides: object.__init__

### replaceField(self, original_field, new_field) | source code
Replace a field on this form with another field. This function can be used to modify inherited forms. :param original_field : the name of the field to be replace :param new_field : the name of the new field :return: True if the original field was found and replaced. Overrides: Form.replaceField (inherited documentation)

### __unicode__(self) | source code
Overrides: Form.__unicode__

### render(*args, **kwargs) | source code
of (label, widget editor) Parameters: `widgets` - a dictionary mapping each field in this form to a tuple Returns: a QWidget into which the form is rendered Decorators: `@gui_function` Overrides: Form.render (inherited documentation)