]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/webkit.py
wxUSE_UXTHEME=0 (WinCE) build fix.
[wxWidgets.git] / wxPython / src / gtk / webkit.py
1 # This file was created automatically by SWIG 1.3.27.
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
9
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
51 import _core
52 wx = _core
53 __docfilter__ = wx.__DocFilter(globals())
54 class WebKitCtrl(_core.Control):
55 """Proxy of C++ WebKitCtrl class"""
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 """
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,
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
69 self._setOORInfo(self)
70
71 def Create(*args, **kwargs):
72 """
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,
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 def GetPageURL(*args, **kwargs):
121 """GetPageURL(self) -> String"""
122 return _webkit.WebKitCtrl_GetPageURL(*args, **kwargs)
123
124 def GetPageTitle(*args, **kwargs):
125 """GetPageTitle(self) -> String"""
126 return _webkit.WebKitCtrl_GetPageTitle(*args, **kwargs)
127
128
129 class WebKitCtrlPtr(WebKitCtrl):
130 def __init__(self, this):
131 self.this = this
132 if not hasattr(self,"thisown"): self.thisown = 0
133 self.__class__ = WebKitCtrl
134 _webkit.WebKitCtrl_swigregister(WebKitCtrlPtr)
135 cvar = _webkit.cvar
136 WebKitNameStr = cvar.WebKitNameStr
137
138 def PreWebKitCtrl(*args, **kwargs):
139 """PreWebKitCtrl() -> WebKitCtrl"""
140 val = _webkit.new_PreWebKitCtrl(*args, **kwargs)
141 val.thisown = 1
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):
152 """Proxy of C++ WebKitStateChangedEvent class"""
153 def __repr__(self):
154 return "<%s.%s; proxy of C++ wxWebKitStateChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
155 def __init__(self, *args, **kwargs):
156 """__init__(self, Window win=None) -> WebKitStateChangedEvent"""
157 newobj = _webkit.new_WebKitStateChangedEvent(*args, **kwargs)
158 self.this = newobj.this
159 self.thisown = 1
160 del newobj.thisown
161 def GetState(*args, **kwargs):
162 """GetState(self) -> int"""
163 return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs)
164
165 def SetState(*args, **kwargs):
166 """SetState(self, int state)"""
167 return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs)
168
169 def GetURL(*args, **kwargs):
170 """GetURL(self) -> String"""
171 return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs)
172
173 def SetURL(*args, **kwargs):
174 """SetURL(self, String url)"""
175 return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs)
176
177
178 class WebKitStateChangedEventPtr(WebKitStateChangedEvent):
179 def __init__(self, this):
180 self.this = this
181 if not hasattr(self,"thisown"): self.thisown = 0
182 self.__class__ = WebKitStateChangedEvent
183 _webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEventPtr)
184
185 EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED)
186
187
188