]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/iewin/iewin.i
Detect Apple bug that prevents the joystick code compiling for OS X 10.1
[wxWidgets.git] / wxPython / contrib / iewin / iewin.i
index 45e48f962930c1ea592961c3147af1510f86fae2..f55d9260a4db6a5c96e7b92449b1c5ea1d5da504 100644 (file)
@@ -11,7 +11,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 
-%module iewin
+%module(package="wx") iewin
 
 %{
 #include "wx/wxPython/wxPython.h"
 //---------------------------------------------------------------------------
 
 %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,10 +78,12 @@ enum wxIEHtmlRefreshLevel {
 };
 
 
+MustHaveApp(wxIEHtmlWin);
+
 class wxIEHtmlWin : public wxWindow /* wxActiveX */ 
 {
 public:
-    %addtofunc wxIEHtmlWin      "self._setOORInfo(self)"
+    %pythonAppend wxIEHtmlWin      "self._setOORInfo(self)"
     
     wxIEHtmlWin(wxWindow * parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
@@ -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();
 
 };