pyqt - python match files from two different list -
i learning python , programing in general , need assistance. i wrote python script reads 1 file, unique values, opens second file , and uses unique values makes calculation(script long upload) created gui using pyqt4 allowed user browse clicking qpushbutton , stored file path in qlineedit set file in script f1 = self.lineedit.text() , f2 = self.lineedit2.text worked however, need allow user select multiple files , match every file 1 corresponding file 2 since dependent on each other here updates made widget functions accept multiple files: def first_file_set(self): dlg = qfiledialog() files = dlg.getopenfilenames() self.listwidget.additems(list(files)) def second_file_set(self): dlg = qfiledialog() filenames = dlg.getopenfilenames() self.listwidget_2.additems(list(filenames)) def clearf(self): item in self.listwidget2.selecteditems(): self.listwidget.clear() def clears(self): item in self.listwidget.selecteditems(): ...