XApp.PreferencesWindow

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.Widget->Gtk.Container XApp.PreferencesWindow XApp.PreferencesWindow Gtk.Window->XApp.PreferencesWindow

Subclasses:

None

Methods

Inherited:

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 ()

add_button (button, pack_type)

add_page (widget, name, title)

Virtual Methods

Inherited:

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

do_close ()

Properties

Inherited:

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

Style Properties

Inherited:

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

Signals

Inherited:

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

Name

Short Description

close

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Gtk.Window

r

Class Details

class XApp.PreferencesWindow(*args, **kwargs)
Bases:

Gtk.Window

Abstract:

No

Structure:

XApp.PreferencesWindowClass

classmethod new()
Returns:

a newly created XApp.PreferencesWindow

Return type:

XApp.PreferencesWindow

Creates a new XApp.PreferencesWindow.

add_button(button, pack_type)
Parameters:

Adds a button to the bottom action bar of the window. Where the button is place will be determined by the Gtk.PackType. The action bar will show automatically once at least one button is added.

add_page(widget, name, title)
Parameters:
  • widget (Gtk.Widget) – a Gtk.Widget to add

  • name (str) – the name for the page

  • title (str) – a human-readable title for the page

Adds a page to the window. The page is identified by name. The title will be used in the sidebar so should be short. The sidebar will show automatically once at least two pages are added.

do_close() virtual

Signal Details

XApp.PreferencesWindow.signals.close(preferences_window)
Signal Name:

close

Flags:

RUN_LAST, ACTION

Parameters:

preferences_window (XApp.PreferencesWindow) – The object which received the signal