Package pygtk_chart :: Module bar_chart :: Class MultiBar
[hide private]
[frames] | no frames]

Class MultiBar

source code


Instance Methods [hide private]
 
__init__(self, name, 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
 
get_value(self)
Returns the maximum value of the MultiBar.
source code
 
set_label(self, label)
Set the label for the bar chart bar.
source code
 
get_label(self)
Returns the current label of the bar.
source code
 
add_bar(self, bar) source code
 
get_bar(self, name)
Returns the Bar with the id 'name' if it exists, None otherwise.
source code
 
_cb_appearance_changed(self, widget) 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, "bar name", "A...
  __gtype__ = <GType pygtk_chart+bar_chart+MultiBar (169841224)>

Inherited from chart.ChartObject: __gsignals__

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, 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

get_value(self)

source code 

Returns the maximum value of the MultiBar.

Returns:
float.

set_label(self, label)

source code 

Set the label for the bar chart bar.

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

get_label(self)

source code 

Returns the current label of the bar.

Returns:
string.

get_bar(self, name)

source code 

Returns the Bar with the id 'name' if it exists, None otherwise.

Parameters:
  • name (string) - the id of a Bar
Returns:
Bar or None.

Class Variable Details [hide private]

__gproperties__

Value:
{"name":(gobject.TYPE_STRING, "bar name", "A unique name for the bar."\
, "", gobject.PARAM_READABLE), "value":(gobject.TYPE_FLOAT, "value", "\
The value.", 0.0, 9999999999.0, 0.0, gobject.PARAM_READABLE), "label":\
(gobject.TYPE_STRING, "bar label", "The label for the bar.", "", gobje\
ct.PARAM_READWRITE)}