AgsGui.Tempo

g AgsGui.Tempo AgsGui.Tempo 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.Tempo Gtk.Widget->AgsGui.Tempo

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 tempo

default-value

float

r/w

The default value of tempo

lower

float

r/w

The lower of tempo

upper

float

r/w

The upper of tempo

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.TempoButtonState

r

control_name

str

r

default_value

float

r

font_size

int

r

key_mask

AgsGui.TempoKeyMask

r

lower

float

r

orientation

Gtk.Orientation

r

page_size

float

r

step_count

int

r

tempo_point

str

r

tempo_step_count

int

r

tempo_value

float

r

upper

float

r

widget

Gtk.Widget

r

Class Details

class AgsGui.Tempo(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

AgsGui.TempoClass

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

the new AgsGui.Tempo instance

Return type:

AgsGui.Tempo

Create a new instance of AgsGui.Tempo.

New in version 5.1.0.

get_control_name()
Returns:

the tempo height

Return type:

str

Get tempo 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 tempo 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 5.1.0.

do_value_changed(default_value) virtual
Parameters:

default_value (float) – the default value

Emits ::value-changed event.

New in version 5.1.0.

Signal Details

AgsGui.Tempo.signals.value_changed(tempo, default_value)
Signal Name:

value-changed

Flags:

RUN_LAST

Parameters:
  • tempo (AgsGui.Tempo) – 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 5.1.0.

Property Details

AgsGui.Tempo.props.control_name
Name:

control-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The tempo’s control name.

New in version 5.1.0.

AgsGui.Tempo.props.default_value
Name:

default-value

Type:

float

Default Value:

120.0

Flags:

READABLE, WRITABLE

The tempo’s default value.

New in version 5.1.0.

AgsGui.Tempo.props.lower
Name:

lower

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The tempo’s lower range.

New in version 5.1.0.

AgsGui.Tempo.props.upper
Name:

upper

Type:

float

Default Value:

240.0

Flags:

READABLE, WRITABLE

The tempo’s upper range.

New in version 5.1.0.