minimal_webkit_testbrowser: Add some output.

This commit is contained in:
Florian Bruhin 2015-07-10 21:34:33 +02:00
parent 0be2192eab
commit 55cf470436

View File

@ -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_()