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

Class Window

QWebView/JsSignals.py:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65class Window(QWidget):
66
67 def __init__(self, *args, **kwargs):
68 super(Window, self).__init__(*args, **kwargs)
69 layout = QVBoxLayout(self)
70 self.webview = WebView(self)
71 layout.addWidget(self.webview)
72 layout.addWidget(QPushButton(
73 '发送自定义信号', self, clicked=self.webview.sendCustomSignal))
74
75 self.webview.windowTitleChanged.connect(self.setWindowTitle)
76 self.webview.load(QUrl.fromLocalFile(
77 os.path.abspath('Data/JsSignals.html')))
78
79
80if __name__ == "__main__":

Callers 1

JsSignals.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected