Package: gtk

Function gtk:notebook-current-page

Lambda List

gtk:notebook-current-page (notebook)

Syntax

(gtk:notebook-current-page notebook) => num
(setf (gtk:notebook-current-page notebook) num)

Arguments

notebook -- a gtk:notebook widget
num -- an integer for the index of the page to switch to, starting from 0, if negative, the last page will be used, if greater than the number of pages in the notebook, nothing will be done

Details

Gets or sets an integer for the index of the page to switch to.

Note that due to historical reasons, the gtk:notebook widget refuses to switch to a page unless the child widget is visible. Therefore, it is recommended to show child widgets before adding them to a notebook.
 

See also

2025-07-31