Skip to content

Gtk.VolumeButton

class — extends ScaleButton, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable

:::warning Deprecated since 4.10 This API is deprecated. :::

GtkVolumeButton is a GtkScaleButton subclass tailored for volume control.

<picture> <source srcset="volumebutton-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkVolumeButton" src="volumebutton.png"> </picture>

Constructors

new

@classmethod
def new(cls) -> Widget

:::warning Deprecated since 4.10 This API is deprecated. :::

Creates a GtkVolumeButton.

The button has a range between 0.0 and 1.0, with a stepping of 0.02. Volume values can be obtained and modified using the functions from ScaleButton.

Properties

use_symbolic

use_symbolic: bool  # read/write

:::warning Deprecated since 4.10 This API is deprecated. :::

Whether to use symbolic icons as the icons.

Note that if the symbolic icons are not available in your installed theme, then the normal (potentially colorful) icons will be used.