from PyQt5.QtWidgets import QApplication import sys app = QApplication(sys.argv)