Open Randalphwa opened 1 year ago
Confirmed, it is a documentation error, see https://github.com/wxWidgets/wxWidgets/pull/23211
I don't suppose there's any chance it could be implemented in wxPython since the function is part of the wxWidgets wxBookCtrlBase class and is documented in the main wxWidgets docs? See https://docs.wxwidgets.org/trunk/classwx_choicebook.html
No, it certainly can be implemented. I was just pointing out why it wasn't previously. (wxPython is generated semi-automatically from wxWidgets interface headers.)
Operating system: Windows (probably all operating systems) wxPython version & source: 4.2.0 installed from pypi.org Python version & source: 3.10 stock
Description of the problem:
The documentation for wx.ChoiceBook states that: "wx.Choicebook allows the use of BookCtrlBase.GetControlSizer(), allowing a program to add other controls next to the choice control.". However, using this causes an error.
Example:
Running the above code results in the error message:
And no,
GetContainingSizer()
does not work as a replacement as the error message suggests.Note that the following C++ code works fine: