fork download
  1. from PyQt5 import QtWidgets
  2.  
  3.  
  4. class W(QtWidgets.QMainWindow):
  5. def __init__(self, text):
  6. super(W, self).__init__()
  7.  
  8. label = QtWidgets.QLabel(text)
  9.  
  10. self.setCentralWidget(label)
  11.  
Runtime error #stdin #stdout #stderr 0.01s 118656KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
    from PyQt5 import QtWidgets
ImportError: No module named PyQt5