Learn R Programming

traitr (version 0.14)

aNotebook: A notebook container.

Description

Pages of notebook are made with aNotebookPage container, which in turn can hold other items.

Usage

aNotebook(..., close_buttons = FALSE, initial_page = 1, context = NULL, attr = list(expand = TRUE), enabled_when, visible_when)

Arguments

close_buttons
Logical indicating if close buttons should be added (RGtk2 only)
initial_page
Which page to open on
context
ItemGroup or item to get context from. Typically left as NULL.
attr
gWidget values passed to constructor
enabled_when
Method to determine when items in container should be enabled
visible_when
Method to determine when items in container should be visible
...
children items specified by character strings

Value

Returns a proto object. Call obj$show_help() to view its methods and properties.

See Also

Container

Examples

Run this code
## Not run: 
# i <- aDialog(items=list(x=numericItem(1), y=stringItem("a")))
# lay <- aNotebook(
#           aNotebookPage(label="page 1", "x"),
#           aNotebookPage(label="page 2", "y")
#         )
# i$make_gui(gui_layout=lay)
# ## End(Not run)

Run the code above in your browser using DataLab