Line 2 of the code won't get past the Python parser because the module is called PyQt5.QtGui.
Fix that and then
Traceback (most recent call last):
File "code.py", line 3, in <module>
NameError: name 'QWidget' is not defined
Traceback (most recent call last):
File "code.py", line 3, in <module>
class MyBrowser(QWidget):
NameError: name 'QWidget' is not defined
To copy to clipboard, switch view to plain text mode
because you need the PyQt5.QtWidget module. Then
Traceback (most recent call last):
File "code.py", line 35, in <module>
browser = MyBrowser()
File "code.py", line 7, in __init__
self.createLayout()
File "code.py", line 24, in createLayout
self.webView = QWebView()
NameError: name 'QWebView' is not defined
Traceback (most recent call last):
File "code.py", line 35, in <module>
browser = MyBrowser()
File "code.py", line 7, in __init__
self.createLayout()
File "code.py", line 24, in createLayout
self.webView = QWebView()
NameError: name 'QWebView' is not defined
To copy to clipboard, switch view to plain text mode
will need PyQt5.QtWebkitWidgets module.
Bookmarks