Dazzle.ProgressMenuButton

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.ProgressMenuButton Dazzle.ProgressMenuButton GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Actionable Gtk.Actionable GObject.GInterface->Gtk.Actionable Gtk.Activatable Gtk.Activatable GObject.GInterface->Gtk.Activatable Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Button Gtk.Button Gtk.Actionable->Gtk.Button Gtk.Activatable->Gtk.Button Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.Button Gtk.Buildable->Gtk.Widget Gtk.ToggleButton Gtk.ToggleButton Gtk.Button->Gtk.ToggleButton Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.MenuButton Gtk.MenuButton Gtk.MenuButton->Dazzle.ProgressMenuButton Gtk.ToggleButton->Gtk.MenuButton Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.MenuButton (13), Gtk.ToggleButton (10), Gtk.Button (29), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Actionable (5), Gtk.Activatable (6)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_progress ()

get_show_progress ()

get_show_theatric ()

reset_theatrics ()

set_progress (progress)

set_show_progress (show_progress)

set_show_theatric (show_theatic)

Virtual Methods

Inherited:

Gtk.ToggleButton (1), Gtk.Button (6), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4), Gtk.Activatable (2)

Properties

Inherited:

Gtk.MenuButton (6), Gtk.ToggleButton (3), Gtk.Button (9), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2), Gtk.Activatable (2)

Name

Type

Flags

Short Description

progress

float

r/w/en

Progress

show-progress

bool

r/w/en

Show progress instead of image

show-theatric

bool

r/w/en

Show Theatric

theatric-icon-name

str

r/w

Theatric Icon Name

transition-duration

int

r/w

Transition Duration

Style Properties

Inherited:

Gtk.Button (7), Gtk.Widget (17)

Signals

Inherited:

Gtk.ToggleButton (1), Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.ToggleButton (1), Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.MenuButton

r

Class Details

class Dazzle.ProgressMenuButton(*args, **kwargs)
Bases:

Gtk.MenuButton

Abstract:

No

Structure:

Dazzle.ProgressMenuButtonClass

classmethod new()
Return type:

Gtk.Widget

get_progress()
Return type:

float

get_show_progress()
Return type:

bool

get_show_theatric()
Return type:

bool

reset_theatrics()

To avoid suprious animations from the button, you must call this function any time you want to allow animations to continue. This is because animations are automatically started upon reaching a progress of 1.0.

If you are performing operations in the background, calling this function every time you add an operation is a good strategry.

set_progress(progress)
Parameters:

progress (float) –

set_show_progress(show_progress)
Parameters:

show_progress (bool) –

set_show_theatric(show_theatic)
Parameters:

show_theatic (bool) –

Property Details

Dazzle.ProgressMenuButton.props.progress
Name:

progress

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Progress

Dazzle.ProgressMenuButton.props.show_progress
Name:

show-progress

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Show progress instead of image

Dazzle.ProgressMenuButton.props.show_theatric
Name:

show-theatric

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Show Theatric

Dazzle.ProgressMenuButton.props.theatric_icon_name
Name:

theatric-icon-name

Type:

str

Default Value:

'folder-download-symbolic'

Flags:

READABLE, WRITABLE

Theatric Icon Name

Dazzle.ProgressMenuButton.props.transition_duration
Name:

transition-duration

Type:

int

Default Value:

750

Flags:

READABLE, WRITABLE

Transition Duration