]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/iewin/iewin.py
cache results of Motif 2 and Motif-is-Lesstif tests
[wxWidgets.git] / wxPython / contrib / iewin / iewin.py
CommitLineData
c731eb47 1# This file was created automatically by SWIG.
de7b7fe6 2# Don't modify this file, modify the SWIG interface instead.
c731eb47 3
de7b7fe6 4import _iewin
c731eb47 5
093d3ff1
RD
6def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
7 if (name == "this"):
8 if isinstance(value, class_type):
9 self.__dict__[name] = value.this
10 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
11 del value.thisown
12 return
13 method = class_type.__swig_setmethods__.get(name,None)
14 if method: return method(self,value)
15 if (not static) or hasattr(self,name) or (name == "thisown"):
16 self.__dict__[name] = value
17 else:
18 raise AttributeError("You cannot add attributes to %s" % self)
19
20def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23def _swig_getattr(self,class_type,name):
24 method = class_type.__swig_getmethods__.get(name,None)
25 if method: return method(self)
26 raise AttributeError,name
27
28import types
29try:
30 _object = types.ObjectType
31 _newclass = 1
32except AttributeError:
33 class _object : pass
34 _newclass = 0
35del types
36
37
38def _swig_setattr_nondynamic_method(set):
39 def set_attr(self,name,value):
40 if hasattr(self,name) or (name in ("this", "thisown")):
41 set(self,name,value)
42 else:
43 raise AttributeError("You cannot add attributes to %s" % self)
44 return set_attr
45
46
d55e5bfc
RD
47import _core
48wx = _core
c24da6d6 49__docfilter__ = wx.__DocFilter(globals())
165e6ca3
RD
50import warnings
51warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.",
52 DeprecationWarning, stacklevel=2)
53
d55e5bfc 54class MSHTMLEvent(_core.NotifyEvent):
093d3ff1 55 """Proxy of C++ MSHTMLEvent class"""
de7b7fe6
RD
56 def __repr__(self):
57 return "<%s.%s; proxy of C++ wxMSHTMLEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
58 def __init__(self, *args, **kwargs):
a95a7133 59 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MSHTMLEvent"""
de7b7fe6
RD
60 newobj = _iewin.new_MSHTMLEvent(*args, **kwargs)
61 self.this = newobj.this
62 self.thisown = 1
63 del newobj.thisown
64 def GetText1(*args, **kwargs):
a95a7133 65 """GetText1(self) -> String"""
de7b7fe6 66 return _iewin.MSHTMLEvent_GetText1(*args, **kwargs)
c731eb47 67
de7b7fe6 68 def GetLong1(*args, **kwargs):
a95a7133 69 """GetLong1(self) -> long"""
de7b7fe6 70 return _iewin.MSHTMLEvent_GetLong1(*args, **kwargs)
c731eb47 71
de7b7fe6 72 def GetLong2(*args, **kwargs):
a95a7133 73 """GetLong2(self) -> long"""
de7b7fe6 74 return _iewin.MSHTMLEvent_GetLong2(*args, **kwargs)
c731eb47 75
c731eb47 76
de7b7fe6
RD
77class MSHTMLEventPtr(MSHTMLEvent):
78 def __init__(self, this):
c731eb47 79 self.this = this
de7b7fe6
RD
80 if not hasattr(self,"thisown"): self.thisown = 0
81 self.__class__ = MSHTMLEvent
82_iewin.MSHTMLEvent_swigregister(MSHTMLEventPtr)
83
84wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2 = _iewin.wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
85wxEVT_COMMAND_MSHTML_NEWWINDOW2 = _iewin.wxEVT_COMMAND_MSHTML_NEWWINDOW2
86wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE = _iewin.wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
87wxEVT_COMMAND_MSHTML_PROGRESSCHANGE = _iewin.wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
88wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE = _iewin.wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
89wxEVT_COMMAND_MSHTML_TITLECHANGE = _iewin.wxEVT_COMMAND_MSHTML_TITLECHANGE
90EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
91EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
92EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
93EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
94EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
95EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
96
97IEHTML_REFRESH_NORMAL = _iewin.IEHTML_REFRESH_NORMAL
98IEHTML_REFRESH_IFEXPIRED = _iewin.IEHTML_REFRESH_IFEXPIRED
99IEHTML_REFRESH_CONTINUE = _iewin.IEHTML_REFRESH_CONTINUE
100IEHTML_REFRESH_COMPLETELY = _iewin.IEHTML_REFRESH_COMPLETELY
d55e5bfc 101class IEHtmlWin(_core.Window):
093d3ff1 102 """Proxy of C++ IEHtmlWin class"""
c731eb47 103 def __repr__(self):
de7b7fe6
RD
104 return "<%s.%s; proxy of C++ wxIEHtmlWin instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
105 def __init__(self, *args, **kwargs):
106 """
a95a7133 107 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
de7b7fe6
RD
108 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> IEHtmlWin
109 """
110 newobj = _iewin.new_IEHtmlWin(*args, **kwargs)
111 self.this = newobj.this
c731eb47 112 self.thisown = 1
de7b7fe6
RD
113 del newobj.thisown
114 self._setOORInfo(self)
c731eb47 115
de7b7fe6 116 def LoadUrl(*args, **kwargs):
a95a7133 117 """LoadUrl(self, String ??)"""
de7b7fe6 118 return _iewin.IEHtmlWin_LoadUrl(*args, **kwargs)
c731eb47 119
de7b7fe6 120 def LoadString(*args, **kwargs):
a95a7133 121 """LoadString(self, String html) -> bool"""
de7b7fe6 122 return _iewin.IEHtmlWin_LoadString(*args, **kwargs)
c731eb47 123
de7b7fe6 124 def LoadStream(*args, **kwargs):
a95a7133 125 """LoadStream(self, InputStream is) -> bool"""
de7b7fe6 126 return _iewin.IEHtmlWin_LoadStream(*args, **kwargs)
c731eb47 127
de7b7fe6
RD
128 Navigate = LoadUrl
129 def SetCharset(*args, **kwargs):
a95a7133 130 """SetCharset(self, String charset)"""
de7b7fe6 131 return _iewin.IEHtmlWin_SetCharset(*args, **kwargs)
c731eb47 132
de7b7fe6 133 def SetEditMode(*args, **kwargs):
a95a7133 134 """SetEditMode(self, bool seton)"""
de7b7fe6 135 return _iewin.IEHtmlWin_SetEditMode(*args, **kwargs)
c731eb47 136
de7b7fe6 137 def GetEditMode(*args, **kwargs):
a95a7133 138 """GetEditMode(self) -> bool"""
de7b7fe6 139 return _iewin.IEHtmlWin_GetEditMode(*args, **kwargs)
c731eb47 140
de7b7fe6 141 def GetStringSelection(*args, **kwargs):
a95a7133 142 """GetStringSelection(self, bool asHTML=False) -> String"""
de7b7fe6 143 return _iewin.IEHtmlWin_GetStringSelection(*args, **kwargs)
c731eb47 144
de7b7fe6 145 def GetText(*args, **kwargs):
a95a7133 146 """GetText(self, bool asHTML=False) -> String"""
de7b7fe6 147 return _iewin.IEHtmlWin_GetText(*args, **kwargs)
c731eb47 148
de7b7fe6 149 def GoBack(*args, **kwargs):
a95a7133 150 """GoBack(self) -> bool"""
de7b7fe6 151 return _iewin.IEHtmlWin_GoBack(*args, **kwargs)
c731eb47 152
de7b7fe6 153 def GoForward(*args, **kwargs):
a95a7133 154 """GoForward(self) -> bool"""
de7b7fe6 155 return _iewin.IEHtmlWin_GoForward(*args, **kwargs)
c731eb47 156
de7b7fe6 157 def GoHome(*args, **kwargs):
a95a7133 158 """GoHome(self) -> bool"""
de7b7fe6 159 return _iewin.IEHtmlWin_GoHome(*args, **kwargs)
c731eb47 160
de7b7fe6 161 def GoSearch(*args, **kwargs):
a95a7133 162 """GoSearch(self) -> bool"""
de7b7fe6 163 return _iewin.IEHtmlWin_GoSearch(*args, **kwargs)
c731eb47 164
de7b7fe6 165 def RefreshPage(*args, **kwargs):
a95a7133 166 """RefreshPage(self, int level) -> bool"""
de7b7fe6 167 return _iewin.IEHtmlWin_RefreshPage(*args, **kwargs)
c731eb47 168
de7b7fe6 169 def Stop(*args, **kwargs):
a95a7133 170 """Stop(self) -> bool"""
de7b7fe6 171 return _iewin.IEHtmlWin_Stop(*args, **kwargs)
c731eb47
RD
172
173
de7b7fe6
RD
174class IEHtmlWinPtr(IEHtmlWin):
175 def __init__(self, this):
176 self.this = this
177 if not hasattr(self,"thisown"): self.thisown = 0
178 self.__class__ = IEHtmlWin
179_iewin.IEHtmlWin_swigregister(IEHtmlWinPtr)
c731eb47 180
c731eb47 181