I have wxNotebook
with several wxNotebookPage
. Each page has a different content that inherits from wxPanel
. What method from wxPanel
is called when active page is changed? If I change panel, I would like to update panel content.
I have the similar functionality binded to resize event which is working.
void MyPanel::Init() {
this->Bind(wxEVT_SIZE, &MyPanel::OnResize, this);
}
void MyPanel::OnResize(wxSizeEvent& ev){
//do something to update panel
}
Note: This is C++ code, but the programming language is not important (it can be Python). I will update the solution, I just need the logic or wxWidget API calls that are same.