GPasteGtk.PreferencesGroup¶
- Subclasses:
None
Methods¶
- Inherited:
Adw.PreferencesGroup (13), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (18), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (7), Gtk.Buildable (9)
Properties¶
- Inherited:
Adw.PreferencesGroup (4), Gtk.Widget (35), 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.PreferencesGroupfree 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) – aGPaste.Settingsinstance
- Returns:
the
Gtk.Switchwe 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) – aGPaste.Settingsinstance
- Returns:
the
Gtk.SpinButtonwe 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) – aGPaste.Settingsinstance
- Returns:
the
Gtk.EntryBufferfrom theGtk.Entrywe just added- Return type:
Add a new text settings to the current pane