AgsGui.Notebook

g AgsGui.Notebook AgsGui.Notebook GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Box Gtk.Box Gtk.Box->AgsGui.Notebook Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Box

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

add_tab (tab)

get_tab ()

insert_tab (tab, position)

next_active_tab (position)

remove_tab (tab)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Box (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

tab-height

int

r/w

The tab’s height

tab-width

int

r/w

The tab’s width

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

box

Gtk.Box

r

navigation

Gtk.Box

r

scroll_next

Gtk.Button

r

scroll_prev

Gtk.Button

r

scrolled_window

Gtk.ScrolledWindow

r

tab

[object]

r

tab_box

Gtk.Box

r

tab_height

int

r

tab_width

int

r

Class Details

class AgsGui.Notebook(**kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

AgsGui.NotebookClass

classmethod new()
Returns:

a new AgsGui.Notebook

Return type:

AgsGui.Notebook

Create a new AgsGui.Notebook.

New in version 3.0.0.

add_tab(tab)
Parameters:

tab (Gtk.ToggleButton) – the Gtk.ToggleButton

Add tab to self.

New in version 3.0.0.

get_tab()
Returns:

the GLib.List-struct containing Gtk.ToggleButton

Return type:

[Gtk.ToggleButton]

Get tab.

New in version 4.0.0.

insert_tab(tab, position)
Parameters:

Insert a new #AgsNotebookTab-struct to self.

New in version 3.0.0.

next_active_tab(position)
Parameters:

position (int) – the position as integer

Returns:

the position of next active tab as integer

Return type:

int

Get next active tab following position.

New in version 3.0.0.

remove_tab(tab)
Parameters:

tab (Gtk.ToggleButton) – the Gtk.ToggleButton

Remove tab from self.

New in version 3.0.0.

Property Details

AgsGui.Notebook.props.tab_height
Name:

tab-height

Type:

int

Default Value:

32

Flags:

READABLE, WRITABLE

The tab’s height.

New in version 4.0.0.

AgsGui.Notebook.props.tab_width
Name:

tab-width

Type:

int

Default Value:

100

Flags:

READABLE, WRITABLE

The tab’s width.

New in version 4.0.0.