def METHOD_NAME(self, event):
    self.clipboard_clear()
    if self._current_source is not None:
        pretty_ast = pretty(ast_utils.parse_source(self._current_source))
        self.clipboard_append(pretty_ast)