Module Stk.NotebookSource

Notebook widget.

Sourceval active_page : int Props.prop

The "active_page" property, representing the 0-based index of the active (i.e. displayed) page in a notebook.

Sourceval tab_props : Props.t Props.prop

Property "tab_props" to store properties used for notebook tabs.

Sourceclass notebook : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata: Widget.wdata option -> unit -> object ... end

Notebook widget.

Sourceval notebook : ?orientation:Props.orientation -> ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Convenient function to create a notebook. Default orientation is Horizontal. The widget has class "vertical" or "horizontal" depending on orientation. See Widget arguments for other arguments.

Sourceval hnotebook : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Same as notebook but orientation is already fixed to Horizontal.

Sourceval vnotebook : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?pack:(Widget.widget -> unit) -> unit -> notebook

Same as notebook but orientation is already fixed to Vertical.