table.py 文件源码

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

项目:MTTT 作者: roxana-lafuente 项目源码 文件源码
def cell_in_translation_table_is_being_focused(self, a, b, segment_index):
        if self.last_cell_focused is not None:
            if self.last_cell_focused_index in self.translation_reference_text_TextViews_modified_flag.keys():
                self.last_cell_focused.override_background_color(Gtk.StateFlags.NORMAL, Gdk.RGBA(0.7, 249, 249, 240))
            else:
                self.last_cell_focused.override_background_color(Gtk.StateFlags.NORMAL, Gdk.RGBA(1.0, 1.0, 1.0, 1.0))
        self.last_cell_focused = self.tables_content[self.reference_text_views][segment_index]
        self.last_cell_focused.override_background_color(Gtk.StateFlags.NORMAL, Gdk.RGBA(0.9, 1, 1, 1))
        self.last_cell_focused_index = segment_index
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号