DocsetView.py 文件源码

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

项目:PyDoc 作者: shaun-h 项目源码 文件源码
def tableview_cell_for_row(self, tableview, section, row):
        cell = ui.TableViewCell()
        cell.border_color = self.theme_manager.currentTheme.tintColour
        cell.background_color = self.theme_manager.currentTheme.backgroundColour
        cell.bar_tint_color = self.theme_manager.currentTheme.toolbarBackgroundColour
        cell.bg_color = self.theme_manager.currentTheme.backgroundColour
        cell.tint_color = self.theme_manager.currentTheme.tintColour
        cell.title_color = self.theme_manager.currentTheme.tintColour
        cell.text_label.text_color = self.theme_manager.currentTheme.textColour
        cell.text_label.text = self.data[row].plural
        cell.accessory_type = 'disclosure_indicator'
        selectedBackgroundView = ui.View()
        selectedBackgroundView.background_color = self.theme_manager.currentTheme.cellSelectionColour
        if not self.theme_manager.currentTheme.showCellSelection:
            selectedBackgroundView.alpha = 0
        cell.selected_background_view = selectedBackgroundView
        if not self.data[row].icon == None:
            cell.image_view.image = self.data[row].icon
        return cell
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号