]>
Commit | Line | Data |
---|---|---|
c51dc212 RD |
1 | # This file was created automatically by SWIG. |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
e3461395 RD |
4 | """ |
5 | wx.webkit.WebKitCtrl for Mac OSX. | |
6 | """ | |
7 | ||
c51dc212 RD |
8 | import _webkit |
9 | ||
093d3ff1 RD |
10 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
11 | if (name == "this"): | |
12 | if isinstance(value, class_type): | |
13 | self.__dict__[name] = value.this | |
14 | if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown | |
15 | del value.thisown | |
16 | return | |
17 | method = class_type.__swig_setmethods__.get(name,None) | |
18 | if method: return method(self,value) | |
19 | if (not static) or hasattr(self,name) or (name == "thisown"): | |
20 | self.__dict__[name] = value | |
21 | else: | |
22 | raise AttributeError("You cannot add attributes to %s" % self) | |
23 | ||
24 | def _swig_setattr(self,class_type,name,value): | |
25 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
26 | ||
27 | def _swig_getattr(self,class_type,name): | |
28 | method = class_type.__swig_getmethods__.get(name,None) | |
29 | if method: return method(self) | |
30 | raise AttributeError,name | |
31 | ||
32 | import types | |
33 | try: | |
34 | _object = types.ObjectType | |
35 | _newclass = 1 | |
36 | except AttributeError: | |
37 | class _object : pass | |
38 | _newclass = 0 | |
39 | del types | |
40 | ||
41 | ||
42 | def _swig_setattr_nondynamic_method(set): | |
43 | def set_attr(self,name,value): | |
44 | if hasattr(self,name) or (name in ("this", "thisown")): | |
45 | set(self,name,value) | |
46 | else: | |
47 | raise AttributeError("You cannot add attributes to %s" % self) | |
48 | return set_attr | |
49 | ||
50 | ||
e3461395 | 51 | import _core |
c51dc212 RD |
52 | wx = _core |
53 | __docfilter__ = wx.__DocFilter(globals()) | |
e3461395 | 54 | class WebKitCtrl(_core.Control): |
093d3ff1 | 55 | """Proxy of C++ WebKitCtrl class""" |
c51dc212 RD |
56 | def __repr__(self): |
57 | return "<%s.%s; proxy of C++ wxWebKitCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
58 | def __init__(self, *args, **kwargs): | |
59 | """ | |
e3461395 RD |
60 | __init__(self, Window parent, int winID=-1, String strURL=EmptyString, |
61 | Point pos=DefaultPosition, Size size=DefaultSize, | |
62 | long style=0, Validator validator=DefaultValidator, | |
c51dc212 RD |
63 | String name=WebKitNameStr) -> WebKitCtrl |
64 | """ | |
65 | newobj = _webkit.new_WebKitCtrl(*args, **kwargs) | |
66 | self.this = newobj.this | |
67 | self.thisown = 1 | |
68 | del newobj.thisown | |
e3461395 RD |
69 | self._setOORInfo(self) |
70 | ||
c51dc212 RD |
71 | def Create(*args, **kwargs): |
72 | """ | |
e3461395 RD |
73 | Create(self, Window parent, int winID=-1, String strURL=EmptyString, |
74 | Point pos=DefaultPosition, Size size=DefaultSize, | |
75 | long style=0, Validator validator=DefaultValidator, | |
c51dc212 RD |
76 | String name=WebKitNameStr) -> bool |
77 | """ | |
78 | return _webkit.WebKitCtrl_Create(*args, **kwargs) | |
79 | ||
80 | def LoadURL(*args, **kwargs): | |
81 | """LoadURL(self, String url)""" | |
82 | return _webkit.WebKitCtrl_LoadURL(*args, **kwargs) | |
83 | ||
84 | def CanGoBack(*args, **kwargs): | |
85 | """CanGoBack(self) -> bool""" | |
86 | return _webkit.WebKitCtrl_CanGoBack(*args, **kwargs) | |
87 | ||
88 | def CanGoForward(*args, **kwargs): | |
89 | """CanGoForward(self) -> bool""" | |
90 | return _webkit.WebKitCtrl_CanGoForward(*args, **kwargs) | |
91 | ||
92 | def GoBack(*args, **kwargs): | |
93 | """GoBack(self) -> bool""" | |
94 | return _webkit.WebKitCtrl_GoBack(*args, **kwargs) | |
95 | ||
96 | def GoForward(*args, **kwargs): | |
97 | """GoForward(self) -> bool""" | |
98 | return _webkit.WebKitCtrl_GoForward(*args, **kwargs) | |
99 | ||
100 | def Reload(*args, **kwargs): | |
101 | """Reload(self)""" | |
102 | return _webkit.WebKitCtrl_Reload(*args, **kwargs) | |
103 | ||
104 | def Stop(*args, **kwargs): | |
105 | """Stop(self)""" | |
106 | return _webkit.WebKitCtrl_Stop(*args, **kwargs) | |
107 | ||
108 | def CanGetPageSource(*args, **kwargs): | |
109 | """CanGetPageSource(self) -> bool""" | |
110 | return _webkit.WebKitCtrl_CanGetPageSource(*args, **kwargs) | |
111 | ||
112 | def GetPageSource(*args, **kwargs): | |
113 | """GetPageSource(self) -> String""" | |
114 | return _webkit.WebKitCtrl_GetPageSource(*args, **kwargs) | |
115 | ||
116 | def SetPageSource(*args, **kwargs): | |
117 | """SetPageSource(self, String source, String baseUrl=EmptyString)""" | |
118 | return _webkit.WebKitCtrl_SetPageSource(*args, **kwargs) | |
119 | ||
120 | ||
121 | class WebKitCtrlPtr(WebKitCtrl): | |
122 | def __init__(self, this): | |
123 | self.this = this | |
124 | if not hasattr(self,"thisown"): self.thisown = 0 | |
125 | self.__class__ = WebKitCtrl | |
126 | _webkit.WebKitCtrl_swigregister(WebKitCtrlPtr) | |
127 | cvar = _webkit.cvar | |
128 | WebKitNameStr = cvar.WebKitNameStr | |
129 | ||
130 | def PreWebKitCtrl(*args, **kwargs): | |
131 | """PreWebKitCtrl() -> WebKitCtrl""" | |
132 | val = _webkit.new_PreWebKitCtrl(*args, **kwargs) | |
133 | val.thisown = 1 | |
134 | return val | |
135 | ||
e3461395 RD |
136 | WEBKIT_STATE_START = _webkit.WEBKIT_STATE_START |
137 | WEBKIT_STATE_NEGOTIATING = _webkit.WEBKIT_STATE_NEGOTIATING | |
138 | WEBKIT_STATE_REDIRECTING = _webkit.WEBKIT_STATE_REDIRECTING | |
139 | WEBKIT_STATE_TRANSFERRING = _webkit.WEBKIT_STATE_TRANSFERRING | |
140 | WEBKIT_STATE_STOP = _webkit.WEBKIT_STATE_STOP | |
141 | WEBKIT_STATE_FAILED = _webkit.WEBKIT_STATE_FAILED | |
142 | wxEVT_WEBKIT_STATE_CHANGED = _webkit.wxEVT_WEBKIT_STATE_CHANGED | |
143 | class WebKitStateChangedEvent(_core.CommandEvent): | |
093d3ff1 | 144 | """Proxy of C++ WebKitStateChangedEvent class""" |
e3461395 RD |
145 | def __repr__(self): |
146 | return "<%s.%s; proxy of C++ wxWebKitStateChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
147 | def __init__(self, *args, **kwargs): | |
148 | """__init__(self, Window win=None) -> WebKitStateChangedEvent""" | |
149 | newobj = _webkit.new_WebKitStateChangedEvent(*args, **kwargs) | |
150 | self.this = newobj.this | |
151 | self.thisown = 1 | |
152 | del newobj.thisown | |
153 | def GetState(*args, **kwargs): | |
154 | """GetState(self) -> int""" | |
155 | return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs) | |
156 | ||
157 | def SetState(*args, **kwargs): | |
158 | """SetState(self, int state)""" | |
159 | return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs) | |
160 | ||
161 | def GetURL(*args, **kwargs): | |
162 | """GetURL(self) -> String""" | |
163 | return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs) | |
164 | ||
165 | def SetURL(*args, **kwargs): | |
166 | """SetURL(self, String url)""" | |
167 | return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs) | |
168 | ||
169 | ||
170 | class WebKitStateChangedEventPtr(WebKitStateChangedEvent): | |
171 | def __init__(self, this): | |
172 | self.this = this | |
173 | if not hasattr(self,"thisown"): self.thisown = 0 | |
174 | self.__class__ = WebKitStateChangedEvent | |
175 | _webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEventPtr) | |
176 | ||
177 | EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED) | |
178 | ||
c51dc212 | 179 |