X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..35095c028d472a2d0b9607a9430a468765a16e3f:/wxPython/src/_notebook.i?ds=inline diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index e150afc6cc..63b40a0565 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -15,9 +15,7 @@ //--------------------------------------------------------------------------- -%{ - DECLARE_DEF_STRING(NOTEBOOK_NAME); -%} +MAKE_CONST_WXSTRING(NOTEBOOK_NAME); //--------------------------------------------------------------------------- %newgroup @@ -97,14 +95,14 @@ public: // adds a new page to the control virtual bool AddPage(wxWindow *page, const wxString& text, - bool select = false, + bool select = False, int imageId = -1); // the same as AddPage(), but adds the page at the specified position virtual bool InsertPage(size_t n, wxWindow *page, const wxString& text, - bool select = false, + bool select = False, int imageId = -1)/* = 0*/; // set the currently selected page, return the index of the previously @@ -115,7 +113,7 @@ public: // cycle thru the pages - void AdvanceSelection(bool forward = true); + void AdvanceSelection(bool forward = True); }; @@ -191,7 +189,10 @@ public: // hit test, returns which tab is hit and, optionally, where (icon, label) // (not implemented on all platforms) - virtual int HitTest(const wxPoint& pt, long* OUTPUT) const; + DocDeclAStr( + virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const, + "HitTest(Point pt) -> (tab, where)", + "Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags."); // implement some base class functions virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const; @@ -299,7 +300,7 @@ public: long style = 0, const wxString& name = wxPyEmptyString); - // returns true if we have wxLB_TOP or wxLB_BOTTOM style + // returns True if we have wxLB_TOP or wxLB_BOTTOM style bool IsVertical() const; };