]>
Commit | Line | Data |
---|---|---|
b2033f1f RD |
1 | # This file was created automatically by SWIG. |
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 | import _core | |
11 | wx = _core | |
12 | __docfilter__ = wx.__DocFilter(globals()) | |
13 | class WebKitCtrl(_core.Control): | |
14 | def __repr__(self): | |
15 | return "<%s.%s; proxy of C++ wxWebKitCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
16 | def __init__(self, *args, **kwargs): | |
17 | """ | |
18 | __init__(self, Window parent, int winID=-1, String strURL=EmptyString, | |
19 | Point pos=DefaultPosition, Size size=DefaultSize, | |
20 | long style=0, Validator validator=DefaultValidator, | |
21 | String name=WebKitNameStr) -> WebKitCtrl | |
22 | """ | |
23 | newobj = _webkit.new_WebKitCtrl(*args, **kwargs) | |
24 | self.this = newobj.this | |
25 | self.thisown = 1 | |
26 | del newobj.thisown | |
27 | self._setOORInfo(self) | |
28 | ||
29 | def Create(*args, **kwargs): | |
30 | """ | |
31 | Create(self, Window parent, int winID=-1, String strURL=EmptyString, | |
32 | Point pos=DefaultPosition, Size size=DefaultSize, | |
33 | long style=0, Validator validator=DefaultValidator, | |
34 | String name=WebKitNameStr) -> bool | |
35 | """ | |
36 | return _webkit.WebKitCtrl_Create(*args, **kwargs) | |
37 | ||
38 | def LoadURL(*args, **kwargs): | |
39 | """LoadURL(self, String url)""" | |
40 | return _webkit.WebKitCtrl_LoadURL(*args, **kwargs) | |
41 | ||
42 | def CanGoBack(*args, **kwargs): | |
43 | """CanGoBack(self) -> bool""" | |
44 | return _webkit.WebKitCtrl_CanGoBack(*args, **kwargs) | |
45 | ||
46 | def CanGoForward(*args, **kwargs): | |
47 | """CanGoForward(self) -> bool""" | |
48 | return _webkit.WebKitCtrl_CanGoForward(*args, **kwargs) | |
49 | ||
50 | def GoBack(*args, **kwargs): | |
51 | """GoBack(self) -> bool""" | |
52 | return _webkit.WebKitCtrl_GoBack(*args, **kwargs) | |
53 | ||
54 | def GoForward(*args, **kwargs): | |
55 | """GoForward(self) -> bool""" | |
56 | return _webkit.WebKitCtrl_GoForward(*args, **kwargs) | |
57 | ||
58 | def Reload(*args, **kwargs): | |
59 | """Reload(self)""" | |
60 | return _webkit.WebKitCtrl_Reload(*args, **kwargs) | |
61 | ||
62 | def Stop(*args, **kwargs): | |
63 | """Stop(self)""" | |
64 | return _webkit.WebKitCtrl_Stop(*args, **kwargs) | |
65 | ||
66 | def CanGetPageSource(*args, **kwargs): | |
67 | """CanGetPageSource(self) -> bool""" | |
68 | return _webkit.WebKitCtrl_CanGetPageSource(*args, **kwargs) | |
69 | ||
70 | def GetPageSource(*args, **kwargs): | |
71 | """GetPageSource(self) -> String""" | |
72 | return _webkit.WebKitCtrl_GetPageSource(*args, **kwargs) | |
73 | ||
74 | def SetPageSource(*args, **kwargs): | |
75 | """SetPageSource(self, String source, String baseUrl=EmptyString)""" | |
76 | return _webkit.WebKitCtrl_SetPageSource(*args, **kwargs) | |
77 | ||
78 | ||
79 | class WebKitCtrlPtr(WebKitCtrl): | |
80 | def __init__(self, this): | |
81 | self.this = this | |
82 | if not hasattr(self,"thisown"): self.thisown = 0 | |
83 | self.__class__ = WebKitCtrl | |
84 | _webkit.WebKitCtrl_swigregister(WebKitCtrlPtr) | |
85 | cvar = _webkit.cvar | |
86 | WebKitNameStr = cvar.WebKitNameStr | |
87 | ||
88 | def PreWebKitCtrl(*args, **kwargs): | |
89 | """PreWebKitCtrl() -> WebKitCtrl""" | |
90 | val = _webkit.new_PreWebKitCtrl(*args, **kwargs) | |
91 | val.thisown = 1 | |
92 | return val | |
93 | ||
94 | WEBKIT_STATE_START = _webkit.WEBKIT_STATE_START | |
95 | WEBKIT_STATE_NEGOTIATING = _webkit.WEBKIT_STATE_NEGOTIATING | |
96 | WEBKIT_STATE_REDIRECTING = _webkit.WEBKIT_STATE_REDIRECTING | |
97 | WEBKIT_STATE_TRANSFERRING = _webkit.WEBKIT_STATE_TRANSFERRING | |
98 | WEBKIT_STATE_STOP = _webkit.WEBKIT_STATE_STOP | |
99 | WEBKIT_STATE_FAILED = _webkit.WEBKIT_STATE_FAILED | |
100 | wxEVT_WEBKIT_STATE_CHANGED = _webkit.wxEVT_WEBKIT_STATE_CHANGED | |
101 | class WebKitStateChangedEvent(_core.CommandEvent): | |
102 | def __repr__(self): | |
103 | return "<%s.%s; proxy of C++ wxWebKitStateChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
104 | def __init__(self, *args, **kwargs): | |
105 | """__init__(self, Window win=None) -> WebKitStateChangedEvent""" | |
106 | newobj = _webkit.new_WebKitStateChangedEvent(*args, **kwargs) | |
107 | self.this = newobj.this | |
108 | self.thisown = 1 | |
109 | del newobj.thisown | |
110 | def GetState(*args, **kwargs): | |
111 | """GetState(self) -> int""" | |
112 | return _webkit.WebKitStateChangedEvent_GetState(*args, **kwargs) | |
113 | ||
114 | def SetState(*args, **kwargs): | |
115 | """SetState(self, int state)""" | |
116 | return _webkit.WebKitStateChangedEvent_SetState(*args, **kwargs) | |
117 | ||
118 | def GetURL(*args, **kwargs): | |
119 | """GetURL(self) -> String""" | |
120 | return _webkit.WebKitStateChangedEvent_GetURL(*args, **kwargs) | |
121 | ||
122 | def SetURL(*args, **kwargs): | |
123 | """SetURL(self, String url)""" | |
124 | return _webkit.WebKitStateChangedEvent_SetURL(*args, **kwargs) | |
125 | ||
126 | ||
127 | class WebKitStateChangedEventPtr(WebKitStateChangedEvent): | |
128 | def __init__(self, this): | |
129 | self.this = this | |
130 | if not hasattr(self,"thisown"): self.thisown = 0 | |
131 | self.__class__ = WebKitStateChangedEvent | |
132 | _webkit.WebKitStateChangedEvent_swigregister(WebKitStateChangedEventPtr) | |
133 | ||
134 | EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder(wxEVT_WEBKIT_STATE_CHANGED) | |
135 | ||
136 |