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

Class Window

QWebEngineView/JsSignals.py:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
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

JsSignals.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected