X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..ee45c548e61fa0ce1f8adbcf29d7678769f2c0ed:/wxPython/contrib/iewin/iewin.i?ds=sidebyside diff --git a/wxPython/contrib/iewin/iewin.i b/wxPython/contrib/iewin/iewin.i index 01764566aa..f55d9260a4 100644 --- a/wxPython/contrib/iewin/iewin.i +++ b/wxPython/contrib/iewin/iewin.i @@ -11,7 +11,7 @@ ///////////////////////////////////////////////////////////////////////////// -%module iewin +%module(package="wx") iewin %{ #include "wx/wxPython/wxPython.h" @@ -24,7 +24,13 @@ //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } +%pythoncode { __docfilter__ = wx.__DocFilter(globals()) } +%pythoncode { + import warnings + warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.", + DeprecationWarning, stacklevel=2) +} MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr); @@ -72,6 +78,8 @@ enum wxIEHtmlRefreshLevel { }; +MustHaveApp(wxIEHtmlWin); + class wxIEHtmlWin : public wxWindow /* wxActiveX */ { public: @@ -92,14 +100,14 @@ public: void SetCharset(wxString charset); void SetEditMode(bool seton); bool GetEditMode(); - wxString GetStringSelection(bool asHTML = False); - wxString GetText(bool asHTML = False); + wxString GetStringSelection(bool asHTML = false); + wxString GetText(bool asHTML = false); bool GoBack(); bool GoForward(); bool GoHome(); bool GoSearch(); - %name(RefreshPage)bool Refresh(wxIEHtmlRefreshLevel level); + %Rename(RefreshPage, bool, Refresh(wxIEHtmlRefreshLevel level)); bool Stop(); };