def setup_method(self, method): self.application = self.new_application() page = self.application.get_current_page() page.view.select_rows((2,)) self.dialog = gaupol.InsertDialog( self.application.window, self.application) self.dialog.show()
def _on_insert_subtitles_activate(self, *args): """Insert subtitles.""" dialog = gaupol.InsertDialog(self.window, self) gaupol.util.flash_dialog(dialog)