MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QWebEngineView/GetCookie.py:29–39  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

27 PathCookies = {} # 存放domain+path的key-value
28
29 def __init__(self, *args, **kwargs):
30 super(WebEngineView, self).__init__(*args, **kwargs)
31 self.cookieView = QTextEdit()
32 self.cookieView.resize(800, 400)
33 self.cookieView.move(400, 400)
34 self.cookieView.setWindowTitle('Cookies')
35 self.cookieView.show()
36 # 绑定cookie被添加的信号槽
37 QWebEngineProfile.defaultProfile().cookieStore(
38 ).cookieAdded.connect(self.onCookieAdd)
39 self.loadFinished.connect(self.onLoadFinished)
40
41 def closeEvent(self, event):
42 self.cookieView.close()

Callers

nothing calls this directly

Calls 3

moveMethod · 0.80
resizeMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected