GPasteGtk.SettingsUiPanel

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GPasteGtk.SettingsUiPanel GPasteGtk.SettingsUiPanel Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Grid Gtk.Grid Gtk.Container->Gtk.Grid Gtk.Grid->GPasteGtk.SettingsUiPanel Gtk.Orientable->Gtk.Grid Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Grid (21), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

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

class

new ()

add_boolean_setting (label, value, on_value_changed, on_reset, *user_data)

add_range_setting (label, value, min, max, step, on_value_changed, on_reset, *user_data)

add_separator ()

add_text_setting (label, value, on_value_changed, on_reset, *user_data)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Grid (4)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class GPasteGtk.SettingsUiPanel(**kwargs)
Bases:

Gtk.Grid

Abstract:

No

Structure:

GPasteGtk.SettingsUiPanelClass

classmethod new()
Returns:

a newly allocated GPasteGtk.SettingsUiPanel free it with GObject.Object.unref

Return type:

GPasteGtk.SettingsUiPanel

Create a new instance of GPasteGtk.SettingsUiPanel

add_boolean_setting(label, value, on_value_changed, on_reset, *user_data)
Parameters:
Returns:

the Gtk.Switch we just added

Return type:

Gtk.Switch

Add a new boolean settings to the current pane

add_range_setting(label, value, min, max, step, on_value_changed, on_reset, *user_data)
Parameters:
  • label (str) – the label to display

  • value (float) – the deafault value

  • min (float) – the minimal authorized value

  • max (float) – the maximal authorized value

  • step (float) – the step between proposed values

  • on_value_changed (GPasteGtk.RangeCallback) – the callback to call when the value changes

  • on_reset (GPasteGtk.ResetCallback) – the callback to call when the value is reset

  • user_data (object or None) –

Returns:

the Gtk.SpinButton we just added

Return type:

Gtk.SpinButton

Add a new boolean settings to the current pane

add_separator()

Add a new separator to the current pane

add_text_setting(label, value, on_value_changed, on_reset, *user_data)
Parameters:
Returns:

the Gtk.Entry we just added

Return type:

Gtk.Entry

Add a new text settings to the current pane