X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..df16c649d21716a3e54eb2598477fa9ed970f278:/wxPython/src/_misc.i?ds=inline diff --git a/wxPython/src/_misc.i b/wxPython/src/_misc.i index 46a8589bcd..a1f6e305f1 100644 --- a/wxPython/src/_misc.i +++ b/wxPython/src/_misc.i @@ -18,6 +18,7 @@ %newgroup +#ifndef __WXX11__ class wxToolTip : public wxObject { public: wxToolTip(const wxString &tip); @@ -30,6 +31,7 @@ public: static void Enable(bool flag); static void SetDelay(long milliseconds); }; +#endif //--------------------------------------------------------------------------- @@ -40,10 +42,20 @@ public: bool IsOk(); bool IsVisible(); - %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT); + wxPoint GetPosition(); - %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT); + DocDeclAName( + void, GetPosition(int *OUTPUT, int *OUTPUT), + "GetPositionTuple() -> (x,y)", + GetPositionTuple); + wxSize GetSize(); + DocDeclAName( + void, GetSize( int *OUTPUT, int *OUTPUT ), + "GetSizeTuple() -> (width, height)", + GetSizeTuple); + + wxWindow *GetWindow(); %name(MoveXY)void Move(int x, int y); void Move(const wxPoint& pt); @@ -52,7 +64,7 @@ public: void Show(int show = True); void Hide(); - %pragma(python) addtoclass = "def __nonzero__(self): return self.IsOk()" + %pythoncode { def __nonzero__(self): return self.IsOk() } }; %inline %{ @@ -142,7 +154,7 @@ public: wxString GetHistoryFile(int i) const; int GetCount() const; - %pragma(python) addtoclass = "GetNoHistoryFiles = GetCount" + %pythoncode { GetNoHistoryFiles = GetCount } };