The "switch-page" signal is emitted when the top page of the notebook is changed. This can occur when a user clicks on a page's tab or when the top page is changed by the program.
See also: set_page() , next_page() , prev_page()
Callback function