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
评论列表
文章目录