main.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:pysport 作者: sportorg 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号