hildon.Volumebar
Base class for widgets that displays a volume bar.
Description
hildon.Volumebar
is a base class for widgets that displays a volume bar that allows
increasing or decreasing volume within a pre-defined range and muting the volume by clicking on a specific mute icon.
Ancestry
Up to the first non-hildon ancestor:
... +-- gtk.Container +-- hildon.Volumebar
Properties
Name | Access | Description |
---|---|---|
"level" |
Read/Write | Current volume level. Varies from 0.0 to 100.0 . |
"mute" |
Read/Write | Whether volume is muted. |
Signals
"mute_toggled" |
def callback(widget, user_param1, ...) |
"level_changed" |
def callback(widget, user_param1, ...) |
Methods
get_level
Gets the volume level, ranging between 0.0 and 100.0 (inclusive).
hildon.Volumebar.get_level()
|
|
---|---|
Returns | The volume level |
set_level
Sets the volume level, ranging between 0.0 and 100.0 (inclusive).
hildon.Volumebar.set_level(level)
|
|
---|---|
level |
The new volume level |
get_mute
Gets mute status.
hildon.Volumebar.get_mute()
|
|
---|---|
Returns | True if it's mute and False otherwise. |
set_mute
Sets mute status.
hildon.Volumebar.set_mute(mute)
|
|
---|---|
mute |
True to mute and False otherwise. |
level_change
Emits "level_changed" signal to the given volumebar. This method is mainly used by derived classes.
hildon.Volumebar.level_change()
|
---|
get_adjustment
Gets the gtk.Adjustment
used in volumebar.
This is a temporary solution until volumebar is restructured to be a child class of gtk.Range
.
hildon.Volumebar.get_adjustment()
|
|
---|---|
Returns | A gtk.Adjustment used by the volume bar. |
Improve this page