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

Class Label

source code


Render a label with a QLabel
Instance Methods
 
__init__(self, label, alignment='left', style=None)
:param label : string to be displayed in the label :param alignment : alignment of text in the label. values that make sense 'left', 'right' or 'center' :param style : string of cascading stylesheet instructions
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, label, alignment='left', style=None)
(Constructor)

source code 
:param label : string to be displayed in the label :param alignment : alignment of text in the label. values that make sense 'left', 'right' or 'center' :param style : string of cascading stylesheet instructions
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__

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)