def main(genreList=[]): app = QApplication(sys.argv) mainWindow = MainWindow(genreList) app.exec_() output = mainWindow.grabUserInfo() return(output)