1# -*- coding: utf-8 -*-
2#---------------------------------------------------------------------------
3# This file is generated by wxPython's PI generator.  Do not edit by hand.
4#
5# The *.pyi files are used by PyCharm and other development tools to provide
6# more information, such as PEP 484 type hints, than it is able to glean from
7# introspection of extension types and methods.  They are not intended to be
8# imported, executed or used for any other purpose other than providing info
9# to the tools. If you don't use use a tool that makes use of .pyi files then
10# you can safely ignore this file.
11#
12# See: https://www.python.org/dev/peps/pep-0484/
13#      https://www.jetbrains.com/help/pycharm/2016.1/type-hinting-in-pycharm.html
14#
15# Copyright: (c) 2018 by Total Control Software
16# License:   wxWindows License
17#---------------------------------------------------------------------------
18
19
20"""
21The :ref:`wx.webkit.wxWebKitCtrl` and related classes are provided mainly for
22backwards compatibility only. New code would be more future-proof by using the
23``wx.html2`` module.  The classes in this module are light wrappers around
24the OSX WebKit control and is not implemented on any other platform.
25"""
26#-- begin-_webkit --#
27
28import wx
29#-- end-_webkit --#
30#-- begin-webkit --#
31WEBKIT_STATE_START = 0
32WEBKIT_STATE_NEGOTIATING = 0
33WEBKIT_STATE_REDIRECTING = 0
34WEBKIT_STATE_TRANSFERRING = 0
35WEBKIT_STATE_STOP = 0
36WEBKIT_STATE_FAILED = 0
37WEBKIT_NAV_LINK_CLICKED = 0
38WEBKIT_NAV_BACK_NEXT = 0
39WEBKIT_NAV_FORM_SUBMITTED = 0
40WEBKIT_NAV_RELOAD = 0
41WEBKIT_NAV_FORM_RESUBMITTED = 0
42WEBKIT_NAV_OTHER = 0
43wxEVT_WEBKIT_STATE_CHANGED = 0
44wxEVT_WEBKIT_BEFORE_LOAD = 0
45wxEVT_WEBKIT_NEW_WINDOW = 0
46WebKitCtrlNameStr = ""
47
48class WebKitCtrl(wx.Control):
49    """
50    WebKitCtrl()
51    WebKitCtrl(parent, winid=wx.ID_ANY, strURL="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=WebKitCtrlNameStr)
52
53    This control is a native wrapper around the Safari web browsing
54    engine.
55    """
56
57    def __init__(self, *args, **kw):
58        """
59        WebKitCtrl()
60        WebKitCtrl(parent, winid=wx.ID_ANY, strURL="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=WebKitCtrlNameStr)
61
62        This control is a native wrapper around the Safari web browsing
63        engine.
64        """
65
66    def Create(self, parent, winid=wx.ID_ANY, strURL="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=WebKitCtrlNameStr):
67        """
68        Create(parent, winid=wx.ID_ANY, strURL="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=WebKitCtrlNameStr) -> bool
69        """
70
71    def LoadURL(self, url):
72        """
73        LoadURL(url)
74        """
75
76    def CanGoBack(self):
77        """
78        CanGoBack() -> bool
79        """
80
81    def CanGoForward(self):
82        """
83        CanGoForward() -> bool
84        """
85
86    def GoBack(self):
87        """
88        GoBack() -> bool
89        """
90
91    def GoForward(self):
92        """
93        GoForward() -> bool
94        """
95
96    def Reload(self):
97        """
98        Reload()
99        """
100
101    def Stop(self):
102        """
103        Stop()
104        """
105
106    def CanGetPageSource(self):
107        """
108        CanGetPageSource() -> bool
109        """
110
111    def GetPageSource(self):
112        """
113        GetPageSource() -> String
114        """
115
116    def SetPageSource(self, source, baseUrl=wx.EmptyString):
117        """
118        SetPageSource(source, baseUrl=wx.EmptyString)
119        """
120
121    def GetPageURL(self):
122        """
123        GetPageURL() -> String
124        """
125
126    def SetPageTitle(self, title):
127        """
128        SetPageTitle(title)
129        """
130
131    def GetPageTitle(self):
132        """
133        GetPageTitle() -> String
134        """
135
136    def SetTitle(self, title):
137        """
138        SetTitle(title)
139        """
140
141    def GetTitle(self):
142        """
143        GetTitle() -> String
144        """
145
146    def GetSelection(self):
147        """
148        GetSelection() -> String
149        """
150
151    def CanIncreaseTextSize(self):
152        """
153        CanIncreaseTextSize() -> bool
154        """
155
156    def IncreaseTextSize(self):
157        """
158        IncreaseTextSize()
159        """
160
161    def CanDecreaseTextSize(self):
162        """
163        CanDecreaseTextSize() -> bool
164        """
165
166    def DecreaseTextSize(self):
167        """
168        DecreaseTextSize()
169        """
170
171    def Print(self, showPrompt=False):
172        """
173        Print(showPrompt=False)
174        """
175
176    def MakeEditable(self, enable=True):
177        """
178        MakeEditable(enable=True)
179        """
180
181    def IsEditable(self):
182        """
183        IsEditable() -> bool
184        """
185
186    def RunScript(self, javascript):
187        """
188        RunScript(javascript) -> String
189        """
190
191    def SetScrollPos(self, pos):
192        """
193        SetScrollPos(pos)
194        """
195
196    def GetScrollPos(self):
197        """
198        GetScrollPos() -> int
199        """
200
201    @staticmethod
202    def GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL):
203        """
204        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
205        """
206    PageSource = property(None, None)
207    PageTitle = property(None, None)
208    PageURL = property(None, None)
209    ScrollPos = property(None, None)
210    Selection = property(None, None)
211    Title = property(None, None)
212# end of class WebKitCtrl
213
214
215class WebKitBeforeLoadEvent(wx.CommandEvent):
216    """
217    WebKitBeforeLoadEvent(win=0)
218    """
219
220    def __init__(self, win=0):
221        """
222        WebKitBeforeLoadEvent(win=0)
223        """
224
225    def IsCancelled(self):
226        """
227        IsCancelled() -> bool
228        """
229
230    def Cancel(self, cancel=True):
231        """
232        Cancel(cancel=True)
233        """
234
235    def GetURL(self):
236        """
237        GetURL() -> String
238        """
239
240    def SetURL(self, url):
241        """
242        SetURL(url)
243        """
244
245    def SetNavigationType(self, navType):
246        """
247        SetNavigationType(navType)
248        """
249
250    def GetNavigationType(self):
251        """
252        GetNavigationType() -> int
253        """
254    NavigationType = property(None, None)
255    URL = property(None, None)
256# end of class WebKitBeforeLoadEvent
257
258
259class WebKitStateChangedEvent(wx.CommandEvent):
260    """
261    WebKitStateChangedEvent(win=0)
262    """
263
264    def __init__(self, win=0):
265        """
266        WebKitStateChangedEvent(win=0)
267        """
268
269    def GetState(self):
270        """
271        GetState() -> int
272        """
273
274    def SetState(self, state):
275        """
276        SetState(state)
277        """
278
279    def GetURL(self):
280        """
281        GetURL() -> String
282        """
283
284    def SetURL(self, url):
285        """
286        SetURL(url)
287        """
288    State = property(None, None)
289    URL = property(None, None)
290# end of class WebKitStateChangedEvent
291
292
293class WebKitNewWindowEvent(wx.CommandEvent):
294    """
295    WebKitNewWindowEvent(win=0)
296    """
297
298    def __init__(self, win=0):
299        """
300        WebKitNewWindowEvent(win=0)
301        """
302
303    def GetURL(self):
304        """
305        GetURL() -> String
306        """
307
308    def SetURL(self, url):
309        """
310        SetURL(url)
311        """
312
313    def GetTargetName(self):
314        """
315        GetTargetName() -> String
316        """
317
318    def SetTargetName(self, name):
319        """
320        SetTargetName(name)
321        """
322    TargetName = property(None, None)
323    URL = property(None, None)
324# end of class WebKitNewWindowEvent
325
326
327EVT_WEBKIT_BEFORE_LOAD = wx.PyEventBinder( wxEVT_WEBKIT_BEFORE_LOAD, 1 )
328EVT_WEBKIT_STATE_CHANGED = wx.PyEventBinder( wxEVT_WEBKIT_STATE_CHANGED, 1 )
329EVT_WEBKIT_NEW_WINDOW = wx.PyEventBinder( wxEVT_WEBKIT_NEW_WINDOW, 1 )
330#-- end-webkit --#
331