// TODO: Virtualize this class so other book controls can be derived in Python
+MustHaveApp(wxBookCtrl);
+
// Common base class for wxList/Tree/Notebook
class wxBookCtrl : public wxControl
{
+MustHaveApp(wxNotebook);
+
class wxNotebook : public wxBookCtrl {
public:
%pythonAppend wxNotebook "self._setOORInfo(self)"
%pythonAppend wxNotebook() ""
+ %typemap(out) wxNotebook*; // turn off this typemap
wxNotebook(wxWindow *parent,
wxWindowID id=-1,
const wxString& name = wxPyNOTEBOOK_NAME);
%name(PreNotebook)wxNotebook();
+ // Turn it back on again
+ %typemap(out) wxNotebook* { $result = wxPyMake_wxObject($1, $owner); }
+
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
+MustHaveApp(wxListbook);
+
// wxListCtrl and wxNotebook combination
class wxListbook : public wxBookCtrl
{
%name(PreListbook)wxListbook();
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,