]>
Commit | Line | Data |
---|---|---|
554f62e9 | 1 | # This file was created automatically by SWIG 1.3.29. |
12f4eef3 RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
4 | """ | |
5 | wx.webkit.WebKitCtrl for Mac OSX. | |
6 | """ | |
7 | ||
8 | import _webkit | |
554f62e9 RD |
9 | import new |
10 | new_instancemethod = new.instancemethod | |
093d3ff1 | 11 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
554f62e9 | 12 | if (name == "thisown"): return self.this.own(value) |
093d3ff1 | 13 | if (name == "this"): |
554f62e9 RD |
14 | if type(value).__name__ == 'PySwigObject': |
15 | self.__dict__[name] = value | |
093d3ff1 RD |
16 | return |
17 | method = class_type.__swig_setmethods__.get(name,None) | |
18 | if method: return method(self,value) | |
554f62e9 | 19 | if (not static) or hasattr(self,name): |
093d3ff1 RD |
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): | |
554f62e9 | 28 | if (name == "thisown"): return self.this.own() |
093d3ff1 RD |
29 | method = class_type.__swig_getmethods__.get(name,None) |
30 | if method: return method(self) | |
31 | raise AttributeError,name | |
32 | ||
554f62e9 RD |
33 | def _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 | ||
093d3ff1 RD |
38 | import types |
39 | try: | |
40 | _object = types.ObjectType | |
41 | _newclass = 1 | |
42 | except AttributeError: | |
43 | class _object : pass | |
44 | _newclass = 0 | |
45 | del types | |
46 | ||
47 | ||
48 | def _swig_setattr_nondynamic_method(set): | |
49 | def set_attr(self,name,value): | |
554f62e9 RD |
50 | if (name == "thisown"): return self.this.own(value) |
51 | if hasattr(self,name) or (name == "this"): | |
093d3ff1 RD |
52 | set(self,name,value) |
53 | else: | |
54 | raise AttributeError("You cannot add attributes to %s" % self) | |
55 | return set_attr | |
56 | ||
57 | ||
12f4eef3 RD |
58 | import _core |
59 | wx = _core | |
60 | __docfilter__ = wx.__DocFilter(globals()) | |
61 | class WebKitCtrl(_core.Control): | |
093d3ff1 | 62 | """Proxy of C++ WebKitCtrl class""" |
554f62e9 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): | |
12f4eef3 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 | """ | |
554f62e9 | 72 | _webkit.WebKitCtrl_swiginit(self,_webkit.new_WebKitCtrl(*args, **kwargs)) |
12f4eef3 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 | ||
e70b4d2d RD |
132 | PageSource = property(GetPageSource,SetPageSource,doc="See `GetPageSource` and `SetPageSource`") |
133 | PageTitle = property(GetPageTitle,doc="See `GetPageTitle`") | |
134 | PageURL = property(GetPageURL,doc="See `GetPageURL`") | |
2131d850 | 135 | _webkit.WebKitCtrl_swigregister(WebKitCtrl) |
12f4eef3 RD |
136 | cvar = _webkit.cvar |
137 | WebKitNameStr = cvar.WebKitNameStr | |
138 | ||
139 | def PreWebKitCtrl(*args, **kwargs): | |
140 | """PreWebKitCtrl() -> WebKitCtrl""" | |
141 | val = _webkit.new_PreWebKitCtrl(*args, **kwargs) | |
12f4eef3 RD |
142 | return val |
143 | ||
144 | WEBKIT_STATE_START = _webkit.WEBKIT_STATE_START | |
145 | WEBKIT_STATE_NEGOTIATING = _webkit.WEBKIT_STATE_NEGOTIATING | |
146 | WEBKIT_STATE_REDIRECTING = _webkit.WEBKIT_STATE_REDIRECTING | |
147 | WEBKIT_STATE_TRANSFERRING = _webkit.WEBKIT_STATE_TRANSFERRING | |
148 | WEBKIT_STATE_STOP = _webkit.WEBKIT_STATE_STOP | |
149 | WEBKIT_STATE_FAILED = _webkit.WEBKIT_STATE_FAILED | |
150 | wxEVT_WEBKIT_STATE_CHANGED = _webkit.wxEVT_WEBKIT_STATE_CHANGED | |
151 | class WebKitStateChangedEvent(_core.CommandEvent): | |
093d3ff1 | 152 | """Proxy of C++ WebKitStateChangedEvent class""" |
554f62e9 RD |
153 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
154 | __repr__ = _swig_repr | |
155 | def __init__(self, *args, **kwargs): | |
12f4eef3 | 156 | """__init__(self, Window win=None) -> WebKitStateChangedEvent""" |
554f62e9 | 157 | _webkit.WebKitStateChangedEvent_swiginit(self,_webkit.new_WebKitStateChangedEvent(*args, **kwargs)) |
12f4eef3 RD |
158 | def GetState(*args, **kwargs): |
159 | """GetState(self) -> int""" | |
160 | return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs) | |
161 | ||
162 | def SetState(*args, **kwargs): | |
163 | """SetState(self, int state)""" | |
164 | return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs) | |
165 | ||
166 | def GetURL(*args, **kwargs): | |
167 | """GetURL(self) -> String""" | |
168 | return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs) | |
169 | ||
170 | def SetURL(*args, **kwargs): | |
171 | """SetURL(self, String url)""" | |
172 | return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs) | |
173 | ||
e70b4d2d RD |
174 | State = property(GetState,SetState,doc="See `GetState` and `SetState`") |
175 | URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`") | |
2131d850 | 176 | _webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEvent) |
12f4eef3 RD |
177 | |
178 | EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED) | |
179 | ||
180 | ||
7449af73 | 181 |