Package kiwi :: Package ui :: Package widgets :: Module button :: Class ProxyButton
[frames | no frames]

Type ProxyButton

      object --+    
               |    
  PropertyObject --+
                   |
      object --+   |
               |   |
ProxyWidgetMixin --+
                   |
      object --+   |
               |   |
        _GObject --+
                   |
                  ProxyButton


A ProxyButton is a Button subclass which is implementing the features required to be used inside the kiwi framework.

It has a specific feature not found in other implementations. If the datatype is set to pixbuf a gtk.Image will be constructed from the pixbuf and be set as a child for the Button
Method Summary
Must matche the data-type property. read(self)
Get the content of the widget.
  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)

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'>,
 <class 'kiwi._GObject'>,
 <type 'int'>,
 <type 'float'>,
 <type 'long'>,
...                                                                    

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