I create a WxPython notebook after a call from a menu item, but unfortunately it's not rendering correctly (only a little blue shape in the corner is visible). I have to manually resize the window and it pops back to working order like the second picture.


Code:
def load_notebook(self): panel = wx.Panel(self) sizer = wx.BoxSizer(wx.VERTICAL) notebook = apps.srp.main.Notebook(panel) sizer.Add(notebook, 1, wx.ALL | wx.EXPAND, 5) panel.SetSizer(sizer) Things I've tried :
self.Layout() self.Refresh() self.Update() notebook.Layout() notebook.Refresh() notebook.Update() both in the main directory and the folder where the notebook and panels are located.
Using
- wxPython-Phoenix (3.0.3.dev1820+49a8884)
- Python 3.4
- OSX 10.10
panelchild of it that holds the actual notebook is is screwed up- it has a size of 20x20 pixels which is the little blue shape I am seeing.