I added the import from PyQt5.QtWidgets import QApplication, QMainWindow
But when I start the programme it seems to do nothing. Tried it under WingIDE pro and cmd → python “filename”
Since I just copied and pasted your programme snippet and added from PyQt5.QtWidgets import QApplication, QMainWindow
. I do not see what I am doing wrong.