GPasteGtk.SettingsUiPanel¶
- 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 |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GPasteGtk.SettingsUiPanel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a newly allocated
GPasteGtk.SettingsUiPanel
free it withGObject.Object.unref
- Return type:
Create a new instance of
GPasteGtk.SettingsUiPanel
- add_boolean_setting(label, value, on_value_changed, on_reset, *user_data)¶
- Parameters:
label (
str
) – the label to displayvalue (
bool
) – the deafault valueon_value_changed (
GPasteGtk.BooleanCallback
) – the callback to call when the value changeson_reset (
GPasteGtk.ResetCallback
) – the callback to call when the value is reset
- Returns:
the
Gtk.Switch
we just added- Return type:
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 displayvalue (
float
) – the deafault valuemin (
float
) – the minimal authorized valuemax (
float
) – the maximal authorized valuestep (
float
) – the step between proposed valueson_value_changed (
GPasteGtk.RangeCallback
) – the callback to call when the value changeson_reset (
GPasteGtk.ResetCallback
) – the callback to call when the value is reset
- Returns:
the
Gtk.SpinButton
we just added- Return type:
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:
label (
str
) – the label to displayvalue (
str
) – the deafault valueon_value_changed (
GPasteGtk.TextCallback
) – the callback to call when the value changeson_reset (
GPasteGtk.ResetCallback
) – the callback to call when the value is reset
- Returns:
the
Gtk.Entry
we just added- Return type:
Add a new text settings to the current pane