GPasteGtk.PreferencesGroup¶
- Subclasses:
None
Methods¶
- Inherited:
Adw.PreferencesGroup (9), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Adw.PreferencesGroup (3), Gtk.Widget (34), Gtk.Accessible (1)
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GPasteGtk.PreferencesGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(title)¶
- Parameters:
title (
str
) – The title of the preferences group- Returns:
a newly allocated
GPasteGtk.PreferencesGroup
free it withGObject.Object.unref
- Return type:
Create a new instance of
GPasteGtk.PreferencesGroup
- add_boolean_setting(label, value, on_value_changed, on_reset, *settings)¶
- 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 resetsettings (
GPaste.Settings
orNone
) –
- 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, *settings)¶
- 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 resetsettings (
GPaste.Settings
orNone
) –
- Returns:
the
Gtk.SpinButton
we just added- Return type:
Add a new boolean settings to the current pane
- add_text_setting(label, value, on_value_changed, on_reset, *settings)¶
- 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 resetsettings (
GPaste.Settings
orNone
) –
- Returns:
the
Gtk.EntryBuffer
from theGtk.Entry
we just added- Return type:
Add a new text settings to the current pane