RB.ShellPreferences¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)
Style Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.ShellPreferences(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(views)¶
- Parameters:
views ([
RB.Source
]) – list of sources to check for preferences pages- Returns:
the
RB.ShellPreferences
instance- Return type:
Creates the
RB.ShellPreferences
instance, populating it with the preferences pages for the sources in the list.
- add_widget(widget, location, expand, fill)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to insert into the preferences windowlocation (
RB.ShellPrefsUILocation
) – the location at which to insert the widgetexpand (
bool
) – whether the widget should be given extra spacefill (
bool
) – whether the widget should fill all space allocated to it
Adds a widget to the preferences window. See
Gtk.Box.pack_start
for details on how the expand and fill parameters work. This function can be used to add widgets to the ‘general’ and ‘playback’ pages.
- append_page(name, widget)¶
- Parameters:
name (
str
) – name of the page to appendwidget (
Gtk.Widget
) – theGtk.Widget
to use as the contents of the page
Appends a new page to the preferences dialog notebook.
- remove_widget(widget, location)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to remove from the preferences windowlocation (
RB.ShellPrefsUILocation
) – the UI location to which the widget was originally added
Removes a widget added with
RB.ShellPreferences.add_widget
from the preferences window.