def main(): App = QApplication(sys.argv) window = MainWindow() window.AddCustomFilter("Custom") App.exec_()