Tepl.TabGroup

g GObject.GInterface GObject.GInterface Tepl.TabGroup Tepl.TabGroup GObject.GInterface->Tepl.TabGroup

Implementations:

Tepl.ApplicationWindow, Tepl.Notebook, Tepl.Tab

Methods

append_tab (tab, jump_to)

get_active_buffer ()

get_active_tab ()

get_active_view ()

get_buffers ()

get_tabs ()

get_views ()

set_active_tab (tab)

Virtual Methods

do_append_tab_vfunc (tab)

do_get_active_tab ()

do_get_tabs ()

do_set_active_tab (tab)

Properties

Name

Type

Flags

Short Description

active-buffer

Tepl.Buffer

r

active-tab

Tepl.Tab

r/w

active-view

Tepl.View

r

Signals

None

Fields

None

Class Details

class Tepl.TabGroup
Bases:

GObject.GInterface

Structure:

Tepl.TabGroupInterface

append_tab(tab, jump_to)
Parameters:
  • tab (Tepl.Tab) – a Tepl.Tab.

  • jump_to (bool) – whether to set tab as the active tab after appending it.

Appends tab to self.

New in version 3.0.

get_active_buffer()
Returns:

the Tepl.Buffer of the active tab.

Return type:

Tepl.Buffer or None

Convenience function.

New in version 3.0.

get_active_tab()
Returns:

the Tepl.Tab currently shown in self.

Return type:

Tepl.Tab or None

New in version 3.0.

get_active_view()
Returns:

the Tepl.View of the active tab.

Return type:

Tepl.View or None

Convenience function.

New in version 3.0.

get_buffers()
Returns:

like Tepl.TabGroup.get_tabs(), but returns Tepl.Buffer's.

Return type:

[Tepl.Buffer]

Convenience function.

New in version 3.0.

get_tabs()
Returns:

the list of all the Tepl.Tab's contained in self.

Return type:

[Tepl.Tab]

Gets the list of Tepl.Tab's contained in self.

If self contains non-Tepl.Tab children, those will not be present in the returned list. In other words, it is not guaranteed that the index of a Tepl.Tab in the returned GLib.List has the same child index in the self container.

New in version 3.0.

get_views()
Returns:

like Tepl.TabGroup.get_tabs(), but returns Tepl.View's.

Return type:

[Tepl.View]

Convenience function.

New in version 3.0.

set_active_tab(tab)
Parameters:

tab (Tepl.Tab) – a Tepl.Tab part of self.

Sets the Tepl.TabGroup :active-tab. tab must be part of self.

New in version 3.0.

do_append_tab_vfunc(tab) virtual
Parameters:

tab (Tepl.Tab) –

do_get_active_tab() virtual
Returns:

the Tepl.Tab currently shown in tab_group.

Return type:

Tepl.Tab or None

New in version 3.0.

do_get_tabs() virtual
Returns:

the list of all the Tepl.Tab's contained in tab_group.

Return type:

[Tepl.Tab]

Gets the list of Tepl.Tab's contained in tab_group.

If tab_group contains non-Tepl.Tab children, those will not be present in the returned list. In other words, it is not guaranteed that the index of a Tepl.Tab in the returned GLib.List has the same child index in the tab_group container.

New in version 3.0.

do_set_active_tab(tab) virtual
Parameters:

tab (Tepl.Tab) – a Tepl.Tab part of tab_group.

Sets the Tepl.TabGroup :active-tab. tab must be part of tab_group.

New in version 3.0.

Property Details

Tepl.TabGroup.props.active_buffer
Name:

active-buffer

Type:

Tepl.Buffer

Default Value:

None

Flags:

READABLE

The Tepl.Buffer of the active tab.

New in version 3.0.

Tepl.TabGroup.props.active_tab
Name:

active-tab

Type:

Tepl.Tab

Default Value:

None

Flags:

READABLE, WRITABLE

The Tepl.Tab currently shown.

New in version 3.0.

Tepl.TabGroup.props.active_view
Name:

active-view

Type:

Tepl.View

Default Value:

None

Flags:

READABLE

The Tepl.View of the active tab.

New in version 3.0.