if __name__ == '__main__': app = QApplication(sys.argv) QApplication.setApplicationName('Helical Browser') window = MainWindow() app.exec_() # we can write these main lines of the code inside the main function if __name__ = '__main__' for faster execution of our code..