MCPcopy
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QWebEngineView/SetCookies.py:57–66  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

55class Window(QWebEngineView):
56
57 def __init__(self, *args, **kwargs):
58 super(Window, self).__init__(*args, **kwargs)
59 # global
60 # self.cookieStore = QWebEngineProfile.defaultProfile().cookieStore()
61
62 # current
63 self.cookieStore = self.page().profile().cookieStore()
64 self.initCookies()
65 self.loadProgress.connect(self.onLoadProgress)
66 self.load(QUrl('https://pyqt.site'))
67
68 def onLoadProgress(self, progress):
69 if progress == 100:

Callers

nothing calls this directly

Calls 2

initCookiesMethod · 0.95
loadMethod · 0.95

Tested by

no test coverage detected