sugar3.graphics.notebook module

Notebook class

This class create a Gtk.Notebook() widget supporting a close button in every tab when the ‘can-close-tabs’ gproperty is enabled (True)

STABLE.

class sugar3.graphics.notebook.Notebook(**kwargs)

Bases: gi.repository.Gtk.Notebook

add_page(text_label, widget)

Adds a page to the notebook.

Parameters:
  • text_label
  • widget
Returns:

Returns TRUE if the page is successfully added to the notebook.

Return type:

Boolean

do_set_property(pspec, value)

Set notebook property

Parameters:pspec – property for which the value will be set
Returns:
Return type:None
Raises:AssertionError