New answers tagged

1

Ok, I solved this with the following code: class MainWindow(QMainWindow): def __init__(self, filelist, **kwargs): openFileAtStart(filelist) def openFileAtStart(self, filelist): matching = [s for s in filelist if ".myformat" in s] if len(matching) > 0: self.openFileByName(matching) if __name__ == "__main__": ...



Top 50 recent answers are included