X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17c0e08c61c69b77e58b3e9ffc78d58fcf105940..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/wxPython/src/windows3.i diff --git a/wxPython/src/windows3.i b/wxPython/src/windows3.i index 43651aea53..570e9fba29 100644 --- a/wxPython/src/windows3.i +++ b/wxPython/src/windows3.i @@ -16,7 +16,10 @@ #include "helpers.h" #include #include +#ifndef __WXMAC__ #include +#include +#endif %} //---------------------------------------------------------------------- @@ -203,6 +206,7 @@ public: //--------------------------------------------------------------------------- +#ifndef __WXMAC__ // wxPopupWindow: a special kind of top level window used for popup menus, // combobox popups and such. @@ -216,6 +220,7 @@ public: bool Create(wxWindow *parent, int flags = wxBORDER_NONE); + // the point must be given in screen coordinates! void Position(const wxPoint& ptOrigin, const wxSize& size); }; @@ -230,11 +235,12 @@ public: : wxPopupTransientWindow(parent, style) {} DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); + DEC_PYCALLBACK__(OnDismiss); PYPRIVATE; }; IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); - +IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); %} @@ -263,3 +269,17 @@ public: //--------------------------------------------------------------------------- +class wxTipWindow : public wxPyPopupTransientWindow +{ +public: + wxTipWindow(wxWindow *parent, + const wxString& text, + wxCoord maxLength = 100); + + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" +}; + + +//--------------------------------------------------------------------------- + +#endif