Esempio n. 1
0
 def _show_subtitle_edit_dialog(self, iter_):
     if iter_ != None:
         # Pass a copy of the subtitle to the SubtitleDialog because
         # it should not modify the original subtitle. The subtitle
         # is then modified using SubtitleListTreeModel to reflect
         # changes to the GUI.
         subtitle = copy.copy(self._subtitle_list_model_new.get_item(iter_))
         dlg = SubtitleDialog(self._dialog, subtitle, edit=True,
                              allow_edit_time=False)
         res = dlg.run()
         dlg.destroy_dialog()
         if res == Gtk.ResponseType.OK:
             self._subtitle_list_model_new.edit_subtitle(iter_, subtitle)