Sir:
I am updating an old code. I am not sure whether I am on right track, but…
Problems
- An dialog window resizes by itself. Step by step follow shows correct size until it comes to
rv = wx.PyApp.MainLoop(self)
and resizes (very small), everything squashed - An error
Adding a window already in a sizer, detach it first!, when article is changed to something else.
pops out atsizerA.Add(self.notebook_1,...)
where sizerA is empty. Also, detaching notebook_1 bysizerA.Detach(self.notebook_1)
does not work. notebook_1 is wx.Notebook(…). - Thers is no other error message.
Troubleshooting
Tracing execution steps, both problems happen after self.notebook_1.DeleteAllPages()
.
Following this page,, wx.CallAfter is tried, resulting an error.
Question
Where can I find a documentation notebook.DeleteAllPages()
? Changelog (5-Jan-2019) says it is declared. I can find DeleteAllPages in several other subclasses.
wxpython version is 4.2.1 gtk3 (phoemix) wxwidgets 3.2.2
I appreciate any suggestion.
Thank you in advance.