From Pyqt6 Qtwidgets Import Qapplication, Later … Mike Bluett: When using this: from PyQt6.