from PyQt5.QtWidgets import QApplication from PyQt5.QtWebKitWidgets import QWebView app = QApplication([]) win = QWebView() html = ''' A Sample Page

Hello, World!


I have nothing to say. ''' win.setHtml(html) win.show() app.exec_()