]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/webkit.py
Move setting of mac.listctrl.always_use_generic to wx.PyApp.__init__
[wxWidgets.git] / wxPython / src / mac / webkit.py
CommitLineData
1bd55598 1# This file was created automatically by SWIG 1.3.29.
b2033f1f
RD
2# Don't modify this file, modify the SWIG interface instead.
3
4"""
5wx.webkit.WebKitCtrl for Mac OSX.
6"""
7
8import _webkit
1bd55598
RD
9import new
10new_instancemethod = new.instancemethod
36ed4f51 11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
1bd55598 12 if (name == "thisown"): return self.this.own(value)
36ed4f51 13 if (name == "this"):
1bd55598
RD
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
36ed4f51
RD
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
1bd55598 19 if (not static) or hasattr(self,name):
36ed4f51
RD
20 self.__dict__[name] = value
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
27def _swig_getattr(self,class_type,name):
1bd55598 28 if (name == "thisown"): return self.this.own()
36ed4f51
RD
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
1bd55598
RD
33def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
36ed4f51
RD
38import types
39try:
40 _object = types.ObjectType
41 _newclass = 1
42except AttributeError:
43 class _object : pass
44 _newclass = 0
45del types
46
47
48def _swig_setattr_nondynamic_method(set):
49 def set_attr(self,name,value):
1bd55598
RD
50 if (name == "thisown"): return self.this.own(value)
51 if hasattr(self,name) or (name == "this"):
36ed4f51
RD
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
b2033f1f
RD
58import _core
59wx = _core
60__docfilter__ = wx.__DocFilter(globals())
61class WebKitCtrl(_core.Control):
36ed4f51 62 """Proxy of C++ WebKitCtrl class"""
1bd55598
RD
63 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
64 __repr__ = _swig_repr
65 def __init__(self, *args, **kwargs):
b2033f1f
RD
66 """
67 __init__(self, Window parent, int winID=-1, String strURL=EmptyString,
68 Point pos=DefaultPosition, Size size=DefaultSize,
69 long style=0, Validator validator=DefaultValidator,
70 String name=WebKitNameStr) -> WebKitCtrl
71 """
1bd55598 72 _webkit.WebKitCtrl_swiginit(self,_webkit.new_WebKitCtrl(*args, **kwargs))
b2033f1f
RD
73 self._setOORInfo(self)
74
75 def Create(*args, **kwargs):
76 """
77 Create(self, Window parent, int winID=-1, String strURL=EmptyString,
78 Point pos=DefaultPosition, Size size=DefaultSize,
79 long style=0, Validator validator=DefaultValidator,
80 String name=WebKitNameStr) -> bool
81 """
82 return _webkit.WebKitCtrl_Create(*args, **kwargs)
83
84 def LoadURL(*args, **kwargs):
85 """LoadURL(self, String url)"""
86 return _webkit.WebKitCtrl_LoadURL(*args, **kwargs)
87
88 def CanGoBack(*args, **kwargs):
89 """CanGoBack(self) -> bool"""
90 return _webkit.WebKitCtrl_CanGoBack(*args, **kwargs)
91
92 def CanGoForward(*args, **kwargs):
93 """CanGoForward(self) -> bool"""
94 return _webkit.WebKitCtrl_CanGoForward(*args, **kwargs)
95
96 def GoBack(*args, **kwargs):
97 """GoBack(self) -> bool"""
98 return _webkit.WebKitCtrl_GoBack(*args, **kwargs)
99
100 def GoForward(*args, **kwargs):
101 """GoForward(self) -> bool"""
102 return _webkit.WebKitCtrl_GoForward(*args, **kwargs)
103
104 def Reload(*args, **kwargs):
105 """Reload(self)"""
106 return _webkit.WebKitCtrl_Reload(*args, **kwargs)
107
108 def Stop(*args, **kwargs):
109 """Stop(self)"""
110 return _webkit.WebKitCtrl_Stop(*args, **kwargs)
111
112 def CanGetPageSource(*args, **kwargs):
113 """CanGetPageSource(self) -> bool"""
114 return _webkit.WebKitCtrl_CanGetPageSource(*args, **kwargs)
115
116 def GetPageSource(*args, **kwargs):
117 """GetPageSource(self) -> String"""
118 return _webkit.WebKitCtrl_GetPageSource(*args, **kwargs)
119
120 def SetPageSource(*args, **kwargs):
121 """SetPageSource(self, String source, String baseUrl=EmptyString)"""
122 return _webkit.WebKitCtrl_SetPageSource(*args, **kwargs)
123
95eb036e
RD
124 def GetPageURL(*args, **kwargs):
125 """GetPageURL(self) -> String"""
126 return _webkit.WebKitCtrl_GetPageURL(*args, **kwargs)
127
128 def GetPageTitle(*args, **kwargs):
129 """GetPageTitle(self) -> String"""
130 return _webkit.WebKitCtrl_GetPageTitle(*args, **kwargs)
131
f1b46404
RD
132 def GetSelection(*args, **kwargs):
133 """GetSelection(self) -> String"""
134 return _webkit.WebKitCtrl_GetSelection(*args, **kwargs)
135
136 def CanIncreaseTextSize(*args, **kwargs):
137 """CanIncreaseTextSize(self) -> bool"""
138 return _webkit.WebKitCtrl_CanIncreaseTextSize(*args, **kwargs)
139
140 def IncreaseTextSize(*args, **kwargs):
141 """IncreaseTextSize(self)"""
142 return _webkit.WebKitCtrl_IncreaseTextSize(*args, **kwargs)
143
144 def CanDecreaseTextSize(*args, **kwargs):
145 """CanDecreaseTextSize(self) -> bool"""
146 return _webkit.WebKitCtrl_CanDecreaseTextSize(*args, **kwargs)
147
148 def DecreaseTextSize(*args, **kwargs):
149 """DecreaseTextSize(self)"""
150 return _webkit.WebKitCtrl_DecreaseTextSize(*args, **kwargs)
151
152 def Print(*args, **kwargs):
153 """Print(self, bool showPrompt=False)"""
154 return _webkit.WebKitCtrl_Print(*args, **kwargs)
155
156 def MakeEditable(*args, **kwargs):
157 """MakeEditable(self, bool enable=True)"""
158 return _webkit.WebKitCtrl_MakeEditable(*args, **kwargs)
159
160 def IsEditable(*args, **kwargs):
161 """IsEditable(self) -> bool"""
162 return _webkit.WebKitCtrl_IsEditable(*args, **kwargs)
163
164 def RunScript(*args, **kwargs):
165 """RunScript(self, String javascript) -> String"""
166 return _webkit.WebKitCtrl_RunScript(*args, **kwargs)
167
168 def SetScrollPos(*args, **kwargs):
169 """SetScrollPos(self, int pos)"""
170 return _webkit.WebKitCtrl_SetScrollPos(*args, **kwargs)
171
172 def GetScrollPos(*args, **kwargs):
173 """GetScrollPos(self) -> int"""
174 return _webkit.WebKitCtrl_GetScrollPos(*args, **kwargs)
175
e70b4d2d
RD
176 PageSource = property(GetPageSource,SetPageSource,doc="See `GetPageSource` and `SetPageSource`")
177 PageTitle = property(GetPageTitle,doc="See `GetPageTitle`")
178 PageURL = property(GetPageURL,doc="See `GetPageURL`")
f1b46404
RD
179 ScrollPos = property(GetScrollPos,SetScrollPos,doc="See `GetScrollPos and SetScrollPos`")
180 Selection = property(GetSelection,doc="See `GetSelection`")
2131d850 181_webkit.WebKitCtrl_swigregister(WebKitCtrl)
b2033f1f
RD
182cvar = _webkit.cvar
183WebKitNameStr = cvar.WebKitNameStr
184
185def PreWebKitCtrl(*args, **kwargs):
186 """PreWebKitCtrl() -> WebKitCtrl"""
187 val = _webkit.new_PreWebKitCtrl(*args, **kwargs)
b2033f1f
RD
188 return val
189
190WEBKIT_STATE_START = _webkit.WEBKIT_STATE_START
191WEBKIT_STATE_NEGOTIATING = _webkit.WEBKIT_STATE_NEGOTIATING
192WEBKIT_STATE_REDIRECTING = _webkit.WEBKIT_STATE_REDIRECTING
193WEBKIT_STATE_TRANSFERRING = _webkit.WEBKIT_STATE_TRANSFERRING
194WEBKIT_STATE_STOP = _webkit.WEBKIT_STATE_STOP
195WEBKIT_STATE_FAILED = _webkit.WEBKIT_STATE_FAILED
f1b46404
RD
196WEBKIT_NAV_LINK_CLICKED = _webkit.WEBKIT_NAV_LINK_CLICKED
197WEBKIT_NAV_BACK_NEXT = _webkit.WEBKIT_NAV_BACK_NEXT
198WEBKIT_NAV_FORM_SUBMITTED = _webkit.WEBKIT_NAV_FORM_SUBMITTED
199WEBKIT_NAV_RELOAD = _webkit.WEBKIT_NAV_RELOAD
200WEBKIT_NAV_FORM_RESUBMITTED = _webkit.WEBKIT_NAV_FORM_RESUBMITTED
201WEBKIT_NAV_OTHER = _webkit.WEBKIT_NAV_OTHER
b2033f1f 202wxEVT_WEBKIT_STATE_CHANGED = _webkit.wxEVT_WEBKIT_STATE_CHANGED
f1b46404
RD
203wxEVT_WEBKIT_BEFORE_LOAD = _webkit.wxEVT_WEBKIT_BEFORE_LOAD
204class WebKitBeforeLoadEvent(_core.CommandEvent):
205 """Proxy of C++ WebKitBeforeLoadEvent class"""
206 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
207 __repr__ = _swig_repr
208 def IsCancelled(*args, **kwargs):
209 """IsCancelled(self) -> bool"""
210 return _webkit.WebKitBeforeLoadEvent_IsCancelled(*args, **kwargs)
211
212 def Cancel(*args, **kwargs):
213 """Cancel(self, bool cancel=True)"""
214 return _webkit.WebKitBeforeLoadEvent_Cancel(*args, **kwargs)
215
216 def GetURL(*args, **kwargs):
217 """GetURL(self) -> String"""
218 return _webkit.WebKitBeforeLoadEvent_GetURL(*args, **kwargs)
219
220 def SetURL(*args, **kwargs):
221 """SetURL(self, String url)"""
222 return _webkit.WebKitBeforeLoadEvent_SetURL(*args, **kwargs)
223
224 def SetNavigationType(*args, **kwargs):
225 """SetNavigationType(self, int navType)"""
226 return _webkit.WebKitBeforeLoadEvent_SetNavigationType(*args, **kwargs)
227
228 def GetNavigationType(*args, **kwargs):
229 """GetNavigationType(self) -> int"""
230 return _webkit.WebKitBeforeLoadEvent_GetNavigationType(*args, **kwargs)
231
232 def __init__(self, *args, **kwargs):
233 """__init__(self, Window win=(wxWindow *) NULL) -> WebKitBeforeLoadEvent"""
234 _webkit.WebKitBeforeLoadEvent_swiginit(self,_webkit.new_WebKitBeforeLoadEvent(*args, **kwargs))
235 NavigationType = property(GetNavigationType,SetNavigationType,doc="See `GetNavigationType` and `SetNavigationType`")
236 URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
237_webkit.WebKitBeforeLoadEvent_swigregister(WebKitBeforeLoadEvent)
238
b2033f1f 239class WebKitStateChangedEvent(_core.CommandEvent):
36ed4f51 240 """Proxy of C++ WebKitStateChangedEvent class"""
1bd55598
RD
241 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
242 __repr__ = _swig_repr
243 def __init__(self, *args, **kwargs):
b2033f1f 244 """__init__(self, Window win=None) -> WebKitStateChangedEvent"""
1bd55598 245 _webkit.WebKitStateChangedEvent_swiginit(self,_webkit.new_WebKitStateChangedEvent(*args, **kwargs))
b2033f1f
RD
246 def GetState(*args, **kwargs):
247 """GetState(self) -> int"""
248 return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs)
249
250 def SetState(*args, **kwargs):
251 """SetState(self, int state)"""
252 return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs)
253
254 def GetURL(*args, **kwargs):
255 """GetURL(self) -> String"""
256 return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs)
257
258 def SetURL(*args, **kwargs):
259 """SetURL(self, String url)"""
260 return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs)
261
e70b4d2d
RD
262 State = property(GetState,SetState,doc="See `GetState` and `SetState`")
263 URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
2131d850 264_webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEvent)
b2033f1f
RD
265
266EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED)
f1b46404 267EVT_WEBKIT_BEFORE_LOAD = wx.PyEventBinder(wxEVT_WEBKIT_BEFORE_LOAD)
b2033f1f
RD
268
269
32fe5131 270