def closeEvent(self, event):
print('Closing')
app = _QApplication.instance()
app.closeAllWindows()
app.quit()
self.bcpre.pop_to_last(all=True)
del_flag = 0
for count in self.bcpre.cut_list:
try:
_os.remove(count + '.pickle')
except:
print('Error in deleting old pickle files')
else:
del_flag += 1
if del_flag == len(self.bcpre.cut_list):
del self.bcpre.cut_list
else:
print('Did not delete pickle file cut list... Something went wrong')
评论列表
文章目录