AgsGui.Scale

g AgsGui.Scale AgsGui.Scale GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->AgsGui.Scale Gtk.Widget->AgsGui.Scale

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (orientation, width_request, height_request)

get_control_name ()

get_default_value ()

get_lower ()

get_upper ()

set_control_name (control_name)

set_default_value (default_value)

set_lower (lower)

set_upper (upper)

value_changed (default_value)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

do_value_changed (default_value)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

control-name

str

r/w

The control name of scale

default-value

float

r/w

The default value of scale

lower

float

r/w

The lower of scale

upper

float

r/w

The upper of scale

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Short Description

value-changed

The ::value-changed signal notifies about modified default value.

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

button_state

AgsGui.ScaleButtonState

r

control_name

str

r

default_value

float

r

flags

AgsGui.ScaleFlags

r

font_size

int

r

key_mask

AgsGui.ScaleKeyMask

r

lower

float

r

orientation

Gtk.Orientation

r

page_size

float

r

scale_point

str

r

scale_step_count

int

r

scale_value

float

r

step_count

int

r

upper

float

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Scale(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

AgsGui.ScaleClass

classmethod new(orientation, width_request, height_request)
Parameters:
Returns:

the new AgsGui.Scale instance

Return type:

AgsGui.Scale

Create a new instance of AgsGui.Scale.

New in version 3.0.0.

get_control_name()
Returns:

the scale height

Return type:

str

Get scale height of self.

New in version 3.2.2.

get_default_value()
Returns:

the normalized volume

Return type:

float

Get normalized volume of self.

New in version 3.2.2.

get_lower()
Returns:

the lower

Return type:

float

Get lower of self.

New in version 3.2.2.

get_upper()
Returns:

the upper

Return type:

float

Get upper of self.

New in version 3.2.2.

set_control_name(control_name)
Parameters:

control_name (str) – the scale height

Set control_name of self.

New in version 3.2.2.

set_default_value(default_value)
Parameters:

default_value (float) – the normalized volume

Set default_value of self.

New in version 3.2.2.

set_lower(lower)
Parameters:

lower (float) – the lower

Set lower of self.

New in version 3.2.2.

set_upper(upper)
Parameters:

upper (float) – the upper

Set upper of self.

New in version 3.2.2.

value_changed(default_value)
Parameters:

default_value (float) – the default value

Emits ::value-changed event.

New in version 3.0.0.

do_value_changed(default_value) virtual
Parameters:

default_value (float) – the default value

Emits ::value-changed event.

New in version 3.0.0.

Signal Details

AgsGui.Scale.signals.value_changed(scale, default_value)
Signal Name:

value-changed

Flags:

RUN_LAST

Parameters:
  • scale (AgsGui.Scale) – The object which received the signal

  • default_value (float) – the changed default value

The ::value-changed signal notifies about modified default value.

New in version 3.0.0.

Property Details

AgsGui.Scale.props.control_name
Name:

control-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The scale’s control name.

New in version 3.0.0.

AgsGui.Scale.props.default_value
Name:

default-value

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The scale’s default value.

New in version 3.0.0.

AgsGui.Scale.props.lower
Name:

lower

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The scale’s lower range.

New in version 3.0.0.

AgsGui.Scale.props.upper
Name:

upper

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The scale’s upper range.

New in version 3.0.0.