GimpUi.Button

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 GimpUi.Button GimpUi.Button 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.Button->GimpUi.Button Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

GimpUi.ColorButton

Methods

Inherited:

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

extended_clicked (modifier_state)

Virtual Methods

Inherited:

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

do_extended_clicked (modifier_state)

Properties

Inherited:

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

Style Properties

Inherited:

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

Signals

Inherited:

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

Name

Short Description

extended-clicked

This signal is emitted when the button is clicked with a modifier key pressed.

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Gtk.Button

r

Class Details

class GimpUi.Button(*args, **kwargs)
Bases:

Gtk.Button

Abstract:

No

Structure:

GimpUi.ButtonClass

GimpUi.Button adds an extra signal to the Gtk.Button widget that allows the callback to distinguish a normal click from a click that was performed with modifier keys pressed.

classmethod new()
Returns:

A pointer to the new GimpUi.Button widget.

Return type:

Gtk.Widget

Creates a new GimpUi.Button widget.

extended_clicked(modifier_state)
Parameters:

modifier_state (Gdk.ModifierType) – a state as found in Gdk.EventButton->state, e.g. Gdk.ModifierType.SHIFT_MASK.

Emits the button’s “extended_clicked” signal.

do_extended_clicked(modifier_state) virtual
Parameters:

modifier_state (Gdk.ModifierType) – a state as found in Gdk.EventButton->state, e.g. Gdk.ModifierType.SHIFT_MASK.

Emits the button’s “extended_clicked” signal.

Signal Details

GimpUi.Button.signals.extended_clicked(button, arg1)
Signal Name:

extended-clicked

Flags:

RUN_FIRST

Parameters:
  • button (GimpUi.Button) – The object which received the signal

  • arg1 (Gdk.ModifierType) – the state of modifier keys when the button was clicked

This signal is emitted when the button is clicked with a modifier key pressed.