Notebook.notebookSourceNotebook widget.
A notebook widget is a [Widget.widget] Container.container, i.e. a widget containing contents widgets (the pages), each one being associated to a widget representing this page in the list of displayed tabs.
A notebook can be oriented vertically (tabs are on the left and and are packed vertically) or horizontally (tabs are on top and and are packed horizontally).
inherit Stk.Container.container_listinherit Stk.Widget.orientedmethod get_nth : int option -> (Stk.Widget.widget * Stk.Widget.widget) optionnb#get_page None returns None. nb#get_page (Some n) returns None if n-th page does not exist, or Some (label_widget, page_widget).
method pack : ?pos:int -> label:Stk.Widget.widget -> Stk.Widget.widget -> unit#pack ~label w adds a new page with contents widget w and label widget label. Optional argument pos can be used to specify a 0-based position for the new page. Default is to append the page.
method unpack : Stk.Widget.widget -> unitunpack w removes the page corresponding to the (contents) widget w.
method find_child : (Stk.Widget.widget Stk.Container.child -> bool) ->
Stk.Widget.widget Stk.Container.child optionfind_child p returns the first page widget c for which p c returns true, if any.
method widget_index : Stk.Widget.widget -> int optionwidget_index w returns the page index corresponding to widget w, if any.