1.2.13. tabs

1.2.13.1. class Tabs

Tabs.__init__(parent)

Create notebook at program start.

parent: Parent widget.
Tabs.switched(widget, child, index)

Callback function when a tab is selected.

widget: Call widget.
child: Widget contained in selected tab.
index: Int index of selected tab.
Tabs.reordered(widget, child, index)

Callback function when a tab is reordered,

widget: all widget.
child: unused widget contained in selected tab.
index: Int index of selected tab.
Tabs.update_title(document)

Update the tab title.

document: The document instance related with the tab.
Tabs.update_all_titles()
Update all tab titles.
Tabs.short_title(title)

Return a shortest version for tab title based on config rule.

title: The title string to short.
RETURNS: A shortest version of title or the same if not exceed.
Tabs.append(document)

Append the given document as a new tab in the notebook.

document: A document instance to append.

Table Of Contents

Previous topic

1.2.12. statusbar

Next topic

1.2.14. toolbar

This Page