X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c7d63962a6ca6de7a85ed34a37fb227555a6714..db679b8c836e69c111cdc31e62cf92cebe4f938f:/wxPython/src/_notebook.i diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 281998f9c7..472cd23e74 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -251,7 +251,7 @@ class NotebookPage(wx.Panel): """ There is an old (and apparently unsolvable) bug when placing a window with a nonstandard background colour in a wx.Notebook on - wxGTK, as the notbooks's background colour would always be used + wxGTK1, as the notbooks's background colour would always be used when the window is refreshed. The solution is to place a panel in the notbook and the coloured window on the panel, sized to cover the panel. This simple class does that for you, just put an @@ -388,7 +388,10 @@ public: // returns true if we have wxCHB_TOP or wxCHB_BOTTOM style - bool IsVertical() const { return HasFlag(wxCHB_BOTTOM | wxCHB_TOP); } + bool IsVertical() const; + + // returns the choice control + wxChoice* GetChoiceCtrl() const; virtual bool DeleteAllPages(); }; @@ -438,9 +441,8 @@ public: wxNotebook *GetNotebook(); }; - -%pythoncode { NotebookSizer = wx._deprecated(NotebookSizer, "NotebookSizer is no longer needed.") } -%pythoncode { BookCtrlSizer = wx._deprecated(BookCtrlSizer, "BookCtrlSizer is no longer needed.") } +%pythoncode { NotebookSizer.__init__ = wx._deprecated(NotebookSizer.__init__, "NotebookSizer is no longer needed.") } +%pythoncode { BookCtrlSizer.__init__ = wx._deprecated(BookCtrlSizer.__init__, "BookCtrlSizer is no longer needed.") } //---------------------------------------------------------------------------