Libxfce4panel.ArrowButton

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget 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 Libxfce4panel.ArrowButton Libxfce4panel.ArrowButton Gtk.ToggleButton->Libxfce4panel.ArrowButton Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

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 (arrow_type)

get_arrow_type ()

get_blinking ()

set_arrow_type (arrow_type)

set_blinking (blinking)

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)

do_arrow_type_changed (type)

Properties

Inherited:

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

Name

Type

Flags

Short Description

arrow-type

Gtk.ArrowType

r/w

The arrow type of the menu button

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)

Name

Short Description

arrow-type-changed

Emitted when the arrow direction of the menu button changes.

Fields

Inherited:

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

Class Details

class Libxfce4panel.ArrowButton(*args, **kwargs)
Bases:

Gtk.ToggleButton

Abstract:

No

Structure:

Libxfce4panel.ArrowButtonClass

This struct contain private data only and should be accessed by the functions below.

classmethod new(arrow_type)
Parameters:

arrow_type (Gtk.ArrowType) – Gtk.ArrowType for the arrow button

Returns:

The newly created Libxfce4panel.ArrowButton widget.

Return type:

Gtk.Widget

Creates a new Libxfce4panel.ArrowButton widget.

get_arrow_type()
Returns:

the Gtk.ArrowType of self.

Return type:

Gtk.ArrowType

Returns the value of the ::arrow-type property.

get_blinking()
Returns:

True when self is blinking.

Return type:

bool

Whether the button is blinking. If the blink timeout is finished and the button is still highlighted, this functions returns True.

New in version 4.8.

set_arrow_type(arrow_type)
Parameters:

arrow_type (Gtk.ArrowType) – a valid Gtk.ArrowType

Sets the arrow type for self.

set_blinking(blinking)
Parameters:

blinking (bool) – True when the button should start blinking, False to stop the blinking.

Make the button blink.

New in version 4.8.

do_arrow_type_changed(type) virtual
Parameters:

type (Gtk.ArrowType) –

Signal Details

Libxfce4panel.ArrowButton.signals.arrow_type_changed(arrow_button, type)
Signal Name:

arrow-type-changed

Flags:

RUN_LAST

Parameters:

Emitted when the arrow direction of the menu button changes. This value also determines the direction of the popup menu.

Property Details

Libxfce4panel.ArrowButton.props.arrow_type
Name:

arrow-type

Type:

Gtk.ArrowType

Default Value:

Gtk.ArrowType.UP

Flags:

READABLE, WRITABLE

The arrow type of the button. This value also determines the direction of the popup menu.