SettingsView.py 文件源码

python
阅读 21 收藏 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.borderColour
        cell.background_color = self.theme_manager.currentTheme.backgroundColour
        cell.bg_color = self.theme_manager.currentTheme.backgroundColour
        cell.tint_color = self.theme_manager.currentTheme.tintColour
        cell.text_label.text_color = self.theme_manager.currentTheme.textColour
        selectedBackgroundView = ui.View()
        selectedBackgroundView.background_color = self.theme_manager.currentTheme.settingsCellSelectionColour
        if not self.theme_manager.currentTheme.showSettingsCellSelection:
            selectedBackgroundView.alpha = 0
        cell.selected_background_view = selectedBackgroundView
        if section == self.docset_section_number:
            cell.text_label.text = self.data[row]
            cell.accessory_type = 'disclosure_indicator'
        elif section == self.ack_section_number:
            cell.text_label.text = self.ack_data[row]['text']
        elif section == self.pydoc_updates_section_number:
            cell.text_label.text = self.updates_data[row]
        elif section == self.theme_section_number:
            cell.text_label.text = self.theme_data[row]
        elif section == self.websearch_section_number:
            cell.text_label.text = self.webSearch_data[row]
        return cell
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号