from PyQt5 import QtWidgets class W(QtWidgets.QMainWindow): def __init__(self, text): super(W, self).__init__() label = QtWidgets.QLabel(text) self.setCentralWidget(label)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 1, in <module> from PyQt5 import QtWidgets ImportError: No module named PyQt5