]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/iewin/iewin.py
use given position for page insertion instead of trying to find the page to insert...
[wxWidgets.git] / wxPython / contrib / iewin / iewin.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _iewin
5
6 def _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
20 def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23 def _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
28 import types
29 try:
30 _object = types.ObjectType
31 _newclass = 1
32 except AttributeError:
33 class _object : pass
34 _newclass = 0
35 del types
36
37
38 def _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
47 import _core
48 wx = _core
49 __docfilter__ = wx.__DocFilter(globals())
50 import warnings
51 warnings.warn("This module is deprecated. Please use the wx.lib.iewin module instead.",
52 DeprecationWarning, stacklevel=2)
53
54 class MSHTMLEvent(_core.NotifyEvent):
55 """Proxy of C++ MSHTMLEvent class"""
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):
59 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> MSHTMLEvent"""
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):
65 """GetText1(self) -> String"""
66 return _iewin.MSHTMLEvent_GetText1(*args, **kwargs)
67
68 def GetLong1(*args, **kwargs):
69 """GetLong1(self) -> long"""
70 return _iewin.MSHTMLEvent_GetLong1(*args, **kwargs)
71
72 def GetLong2(*args, **kwargs):
73 """GetLong2(self) -> long"""
74 return _iewin.MSHTMLEvent_GetLong2(*args, **kwargs)
75
76
77 class MSHTMLEventPtr(MSHTMLEvent):
78 def __init__(self, this):
79 self.this = this
80 if not hasattr(self,"thisown"): self.thisown = 0
81 self.__class__ = MSHTMLEvent
82 _iewin.MSHTMLEvent_swigregister(MSHTMLEventPtr)
83
84 wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2 = _iewin.wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2
85 wxEVT_COMMAND_MSHTML_NEWWINDOW2 = _iewin.wxEVT_COMMAND_MSHTML_NEWWINDOW2
86 wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE = _iewin.wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE
87 wxEVT_COMMAND_MSHTML_PROGRESSCHANGE = _iewin.wxEVT_COMMAND_MSHTML_PROGRESSCHANGE
88 wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE = _iewin.wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE
89 wxEVT_COMMAND_MSHTML_TITLECHANGE = _iewin.wxEVT_COMMAND_MSHTML_TITLECHANGE
90 EVT_MSHTML_BEFORENAVIGATE2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_BEFORENAVIGATE2, 1)
91 EVT_MSHTML_NEWWINDOW2 = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_NEWWINDOW2, 1)
92 EVT_MSHTML_DOCUMENTCOMPLETE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_DOCUMENTCOMPLETE, 1)
93 EVT_MSHTML_PROGRESSCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_PROGRESSCHANGE, 1)
94 EVT_MSHTML_STATUSTEXTCHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_STATUSTEXTCHANGE, 1)
95 EVT_MSHTML_TITLECHANGE = wx.PyEventBinder(wxEVT_COMMAND_MSHTML_TITLECHANGE, 1)
96
97 IEHTML_REFRESH_NORMAL = _iewin.IEHTML_REFRESH_NORMAL
98 IEHTML_REFRESH_IFEXPIRED = _iewin.IEHTML_REFRESH_IFEXPIRED
99 IEHTML_REFRESH_CONTINUE = _iewin.IEHTML_REFRESH_CONTINUE
100 IEHTML_REFRESH_COMPLETELY = _iewin.IEHTML_REFRESH_COMPLETELY
101 class IEHtmlWin(_core.Window):
102 """Proxy of C++ IEHtmlWin class"""
103 def __repr__(self):
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 """
107 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
108 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> IEHtmlWin
109 """
110 newobj = _iewin.new_IEHtmlWin(*args, **kwargs)
111 self.this = newobj.this
112 self.thisown = 1
113 del newobj.thisown
114 self._setOORInfo(self)
115
116 def LoadUrl(*args, **kwargs):
117 """LoadUrl(self, String ??)"""
118 return _iewin.IEHtmlWin_LoadUrl(*args, **kwargs)
119
120 def LoadString(*args, **kwargs):
121 """LoadString(self, String html) -> bool"""
122 return _iewin.IEHtmlWin_LoadString(*args, **kwargs)
123
124 def LoadStream(*args, **kwargs):
125 """LoadStream(self, InputStream is) -> bool"""
126 return _iewin.IEHtmlWin_LoadStream(*args, **kwargs)
127
128 Navigate = LoadUrl
129 def SetCharset(*args, **kwargs):
130 """SetCharset(self, String charset)"""
131 return _iewin.IEHtmlWin_SetCharset(*args, **kwargs)
132
133 def SetEditMode(*args, **kwargs):
134 """SetEditMode(self, bool seton)"""
135 return _iewin.IEHtmlWin_SetEditMode(*args, **kwargs)
136
137 def GetEditMode(*args, **kwargs):
138 """GetEditMode(self) -> bool"""
139 return _iewin.IEHtmlWin_GetEditMode(*args, **kwargs)
140
141 def GetStringSelection(*args, **kwargs):
142 """GetStringSelection(self, bool asHTML=False) -> String"""
143 return _iewin.IEHtmlWin_GetStringSelection(*args, **kwargs)
144
145 def GetText(*args, **kwargs):
146 """GetText(self, bool asHTML=False) -> String"""
147 return _iewin.IEHtmlWin_GetText(*args, **kwargs)
148
149 def GoBack(*args, **kwargs):
150 """GoBack(self) -> bool"""
151 return _iewin.IEHtmlWin_GoBack(*args, **kwargs)
152
153 def GoForward(*args, **kwargs):
154 """GoForward(self) -> bool"""
155 return _iewin.IEHtmlWin_GoForward(*args, **kwargs)
156
157 def GoHome(*args, **kwargs):
158 """GoHome(self) -> bool"""
159 return _iewin.IEHtmlWin_GoHome(*args, **kwargs)
160
161 def GoSearch(*args, **kwargs):
162 """GoSearch(self) -> bool"""
163 return _iewin.IEHtmlWin_GoSearch(*args, **kwargs)
164
165 def RefreshPage(*args, **kwargs):
166 """RefreshPage(self, int level) -> bool"""
167 return _iewin.IEHtmlWin_RefreshPage(*args, **kwargs)
168
169 def Stop(*args, **kwargs):
170 """Stop(self) -> bool"""
171 return _iewin.IEHtmlWin_Stop(*args, **kwargs)
172
173
174 class 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)
180
181