minimal_webkit_testbrowser: Add some output.
This commit is contained in:
parent
0be2192eab
commit
55cf470436
@ -38,7 +38,12 @@ def parse_args():
|
||||
if __name__ == '__main__':
|
||||
args = parse_args()
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
wv = QWebView()
|
||||
wv.loadStarted.connect(lambda: print("Loading started"))
|
||||
wv.loadProgress.connect(lambda p: print("Loading progress: {}%".format(p)))
|
||||
wv.loadFinished.connect(lambda: print("Loading finished"))
|
||||
wv.load(QUrl.fromUserInput(args.url))
|
||||
wv.show()
|
||||
|
||||
app.exec_()
|
||||
|
Loading…
Reference in New Issue
Block a user