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

Method __init__

QWebEngineView/JsSignals.py:124–134  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

122class Window(QWidget):
123
124 def __init__(self, *args, **kwargs):
125 super(Window, self).__init__(*args, **kwargs)
126 layout = QVBoxLayout(self)
127 self.webview = WebEngineView(self)
128 layout.addWidget(self.webview)
129 layout.addWidget(QPushButton(
130 '发送自定义信号', self, clicked=self.webview.sendCustomSignal))
131
132 self.webview.windowTitleChanged.connect(self.setWindowTitle)
133 self.webview.load(QUrl.fromLocalFile(
134 os.path.abspath('Data/JsSignals.html')))
135
136
137if __name__ == '__main__':

Callers 1

__init__Method · 0.45

Calls 3

addWidgetMethod · 0.80
WebEngineViewClass · 0.70
loadMethod · 0.45

Tested by

no test coverage detected