def split_printout_selected(self):
if self.current_tab != 1:
logging.warning(_('No result selected'))
return
try:
obj = race()
table = GlobalAccess().get_result_table()
assert isinstance(table, QTableView)
index = table.currentIndex().row()
if index < 0:
index = 0
if index >= len(obj.results):
mes = QMessageBox()
mes.setText(_('No results to print'))
mes.exec()
return
self.split_printout(obj.results[index])
except Exception as e:
logging.exception(str(e))
评论列表
文章目录