Package pygtk_chart :: Module pie_chart :: Class PieArea
[hide private]
[frames] | no frames]

Class PieArea

source code


Instance Methods [hide private]
 
__init__(self, name, value, label='')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
do_get_property(self, property) source code
 
do_set_property(self, property, value) source code
 
set_value(self, value)
Set the value of the PieArea.
source code
 
get_value(self)
Returns the current value of the PieArea.
source code
 
set_color(self, color)
Set the color of the pie area.
source code
 
get_color(self)
Returns the current color of the pie area or COLOR_AUTO.
source code
 
set_label(self, label)
Set the label for the pie chart area.
source code
 
get_label(self)
Returns the current label of the area.
source code

Inherited from chart.ChartObject: draw, get_antialias, get_visible, set_antialias, set_visible

Inherited from chart.ChartObject (private): _do_draw

Inherited from unreachable.GObject: __cmp__, __copy__, __deepcopy__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Class Variables [hide private]
  __gproperties__ = {"name":(gobject.TYPE_STRING, "pie are name"...
  __gtype__ = <GType pygtk_chart+pie_chart+PieArea (168592832)>

Inherited from chart.ChartObject: __gsignals__

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, value, label='')
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

do_get_property(self, property)

source code 
Overrides: chart.ChartObject.do_get_property

do_set_property(self, property, value)

source code 
Overrides: chart.ChartObject.do_set_property

set_value(self, value)

source code 

Set the value of the PieArea.

Parameters:
  • value (float.)

get_value(self)

source code 

Returns the current value of the PieArea.

Returns:
float.

set_color(self, color)

source code 

Set the color of the pie area. Color has to either COLOR_AUTO or a tuple (r, g, b) with r, g, b in [0, 1].

Parameters:
  • color (a color.)

get_color(self)

source code 

Returns the current color of the pie area or COLOR_AUTO.

Returns:
a color.

set_label(self, label)

source code 

Set the label for the pie chart area.

Parameters:
  • label (string.) - the new label

get_label(self)

source code 

Returns the current label of the area.

Returns:
string.

Class Variable Details [hide private]

__gproperties__

Value:
{"name":(gobject.TYPE_STRING, "pie are name", "A unique name for the p\
ie area.", "", gobject.PARAM_READABLE), "value":(gobject.TYPE_FLOAT, "\
value", "The value.", 0.0, 9999999999.0, 0.0, gobject.PARAM_READWRITE)\
, "color":(gobject.TYPE_PYOBJECT, "pie area color", "The color of the \
area.", gobject.PARAM_READWRITE), "label":(gobject.TYPE_STRING, "area \
label", "The label for the area.", "", gobject.PARAM_READWRITE)}