GimpUi.Button¶
- Subclasses:
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 |
|
|
Virtual Methods¶
- Inherited:
Gtk.Button (6), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4), Gtk.Activatable (2)
|
Properties¶
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gtk.Button (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Short Description |
|---|---|
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 |
r |
Class Details¶
- class GimpUi.Button(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GimpUi.Buttonadds an extra signal to theGtk.Buttonwidget 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.Buttonwidget.- Return type:
Creates a new
GimpUi.Buttonwidget.
- extended_clicked(modifier_state)¶
- Parameters:
modifier_state (
Gdk.ModifierType) – a state as found inGdk.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 inGdk.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:
- Parameters:
button (
GimpUi.Button) – The object which received the signalarg1 (
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.