def on_marketDeleteButton_clicked(self): selection = self.marketTableWidget.selectedItems() if not selection: return if not self.yorn("Are you sure?"): return mktHash = str(selection[2].text()) market = self.searchlistbyhash(listDict["market"], mktHash) MM_util.MM_backupfile("market", market.hash) self.updateUi()