UPowerGlib.StatsItem

g GObject.Object GObject.Object UPowerGlib.StatsItem UPowerGlib.StatsItem GObject.Object->UPowerGlib.StatsItem

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_accuracy ()

get_value ()

set_accuracy (accuracy)

set_value (value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

accuracy

float

r/w

value

float

r/w

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class UPowerGlib.StatsItem(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

UPowerGlib.StatsItemClass

classmethod new()
Returns:

a new UPowerGlib.StatsItem object.

Return type:

UPowerGlib.StatsItem

New in version 0.9.0.

get_accuracy()
Return type:

float

Gets the item accuracy.

New in version 0.9.0.

get_value()
Return type:

float

Gets the item value.

New in version 0.9.0.

set_accuracy(accuracy)
Parameters:

accuracy (float) –

Sets the item accuracy.

New in version 0.9.0.

set_value(value)
Parameters:

value (float) –

Sets the item value.

New in version 0.9.0.

Property Details

UPowerGlib.StatsItem.props.accuracy
Name:

accuracy

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

New in version 0.9.0.

UPowerGlib.StatsItem.props.value
Name:

value

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

New in version 0.9.0.