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

# Class GridForm

source code

Put different fields into a grid, without a label. Row or column labels can be added using the Label form:

    GridForm([['title', 'short_description'], ['director','release_date']])

Instance Methods
__init__(self, grid, nomargins=False) eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as : | source code
append_row(self, row) use this method to modify inherited grid forms | source code
append_column(self, column) use this method to modify inherited grid forms | source code
render(*args, **kwargs) of (label, widget editor) | source code
Inherited from `Form`: `__unicode__`, `add_field`, `get_fields`, `removeField`, `replaceField` 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, grid, nomargins=False) (Constructor) | source code
eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as :
street | city
country |
Parameters: `grid` - A list for each row in the grid, containing a list with all fields that should be put in that row Overrides: object.__init__

### append_row(self, row) | source code
use this method to modify inherited grid forms Parameters: `row` - the list of fields that should come in the additional row

### append_column(self, column) | source code
use this method to modify inherited grid forms Parameters: `column` - the list of fields that should come in the additional column

### 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)