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

Class GroupBoxForm

source code


Renders a form within a QGroupBox:

class Admin(EntityAdmin):
  form_display = GroupBoxForm('Movie', ['title', 'short_description'])
../_static/form/group_box_form.png
Instance Methods
 
__init__(self, title, content, scrollbars=None, min_width=None, min_height=None, columns=1)
eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as :
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, title, content, scrollbars=None, min_width=None, min_height=None, columns=1)
(Constructor)

source code 

eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as :

street

city

country

 
Parameters:
  • content - a list with the field names and forms to render
  • columns - the number of columns in which to order the fields.
Overrides: object.__init__
(inherited documentation)

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)