AsciiModel.py 文件源码

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

项目:PINCE 作者: korcankaraokcu 项目源码 文件源码
def data(self, QModelIndex, int_role=None):
        if not QModelIndex.isValid():
            return QVariant()
        if int_role == Qt.BackgroundColorRole:
            if QModelIndex.row() * self.column_count + QModelIndex.column() in self.breakpoint_list:
                return QVariant(QColor(Qt.red))
        elif int_role != Qt.DisplayRole:
            return QVariant()
        if self.data_array is None:
            return QVariant()
        return QVariant(
            SysUtils.aob_to_str(self.data_array[QModelIndex.row() * self.column_count + QModelIndex.column()]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号