RB.ShellPreferences

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 GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Dialog Gtk.Dialog RB.ShellPreferences RB.ShellPreferences Gtk.Dialog->RB.ShellPreferences Gtk.Widget->Gtk.Container Gtk.Window->Gtk.Dialog

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

new (views)

add_widget (widget, location, expand, fill)

append_page (name, widget)

remove_widget (widget, location)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Dialog (4), Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Dialog

r

Class Details

class RB.ShellPreferences(*args, **kwargs)
Bases:

Gtk.Dialog

Abstract:

No

Structure:

RB.ShellPreferencesClass

classmethod new(views)
Parameters:

views ([RB.Source]) – list of sources to check for preferences pages

Returns:

the RB.ShellPreferences instance

Return type:

Gtk.Widget

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) – the Gtk.Widget to insert into the preferences window

  • location (RB.ShellPrefsUILocation) – the location at which to insert the widget

  • expand (bool) – whether the widget should be given extra space

  • fill (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 append

  • widget (Gtk.Widget) – the Gtk.Widget to use as the contents of the page

Appends a new page to the preferences dialog notebook.

remove_widget(widget, location)
Parameters:

Removes a widget added with RB.ShellPreferences.add_widget from the preferences window.