Public Member Functions | |
NotebookEvent (int commandType, int id, int nSel, int nOldSel) | |
NotebookEvent (IntPtr wxObject) | |
Properties | |
int | OldSelection [get, set] |
int | Selection [get, set] |
wx.NotebookEvent.NotebookEvent | ( | IntPtr | wxObject | ) |
wx.NotebookEvent.NotebookEvent | ( | int | commandType, | |
int | id, | |||
int | nSel, | |||
int | nOldSel | |||
) |
int wx.NotebookEvent.OldSelection [get, set] |
int wx.NotebookEvent.Selection [get, set] |
Returns the currently selected page, or -1 if none was selected. NB: under Windows, Selection
will return the same value as OldSelection
when called from EVT_NOTEBOOK_PAGE_CHANGING
handler and not the page which is going to be selected. Also note that the values of selection and old selection returned for an event generated in response to a call to wx.Notebook.SetSelection shouldn't be trusted as they are currently inconsistent under different platforms (but in this case you presumably don't need them anyhow as you already have the corresponding information).