Package kiwi :: Package ui :: Package widgets :: Module label :: Class ProxyLabel
[frames | no frames]

Type ProxyLabel

      object --+    
               |    
  PropertyObject --+
                   |
      object --+   |
               |   |
ProxyWidgetMixin --+
                   |
      object --+   |
               |   |
        _GObject --+
                   |
                  ProxyLabel

Known Subclasses:
Label

Method Summary
Must matche the data-type property. read(self)
Get the content of the widget.
  set_bold(self, value)
If True set the text to bold.
  set_color(self, color)
  set_italic(self, value)
Enable or disable italic text
  set_size(self, size)
Set the size of the label.
  set_text(self, text)
Overrides gtk.Label set_text method.
  set_underline(self, value)
Enable or disable underlined text
  update(self, data)
    Inherited from PropertyObject
  do_get_property(self, pspec)
  do_set_property(self, pspec, value)
  get_attribute_names(self)
  is_default_value(self, attr, value)
    Inherited from ProxyWidgetMixin
  prop_set_data_type(self, data_type)
Set the data type for the widget
  set_data_format(self, format)

Class Variable Summary
tuple allowed_data_types: A list of types which we are allowed to use in this class.

Instance Method Details

read(self)

Get the content of the widget. The type of the return value
Returns:
None if the user input a invalid value
           (type=Must matche the data-type property.)
Overrides:
kiwi.ui.proxywidget.ProxyWidgetMixin.read (inherited documentation)

set_bold(self, value)

If True set the text to bold. False sets the text to normal

set_italic(self, value)

Enable or disable italic text
Parameters:
value - Allowed values:
  • True: enable Italic attribute
  • False: disable Italic attribute

set_size(self, size=None)

Set the size of the label. If size is empty the label will be set to the default size.
Parameters:
size - Allowed values:
  • xx-small
  • x-small
  • small
  • medium,
  • large
  • x-large
  • xx-large

           (type=string)

set_text(self, text)

Overrides gtk.Label set_text method. Sets the new text of the label but keeps the formating
Parameters:
text - label
           (type=string)

set_underline(self, value)

Enable or disable underlined text
Parameters:
value - Allowed values:
  • True: enable Underline attribute
  • Fase: disable Underline attribute

Class Variable Details

allowed_data_types

A list of types which we are allowed to use in this class.
Type:
tuple
Value:
(<type 'basestring'>,
 <type 'datetime.date'>,
 <type 'datetime.datetime'>,
 <type 'datetime.time'>,
 <type 'int'>,
 <type 'float'>,
 <type 'long'>,
 <class 'decimal.Decimal'>)                                            

Generated by Epydoc 2.1 on Mon Jan 29 16:42:58 2007 http://epydoc.sf.net