Re: save to new file

From: Tomeu Vizoso <tomeu_at_sugarlabs.org>
Date: Mon Jul 27 2009 - 12:23:23 CEST

On Mon, Jul 27, 2009 at 12:19, Daniel Carvalho<idnael@gmail.com> wrote:
>
> I filled another bug report today:
>
> Bug 12259 has been added to the database -
> http://bugzilla.abisource.com/show_bug.cgi?id=12259
>
>
>
> I have an Abiword Canvas visiting a file, and want to programatically save it
> to a new file.
>
> There is a "save" method which I'm trying to use:
>  new_file="/home/daniel/comp/Doques/src/_ola3.txt"
>  self.abiword_canvas.save("file:"+new_file,"file:"+new_file,"")
>
> It saves to the file, but doensn't associate the editor with that new file. If
> user press control+S, the editor is saved to the old file.

What about disabling all key bindings with the loadbindings plugin and
handling all keyboard shortcuts from your pygtk app?

Regards,

Tomeu
Received on Mon Jul 27 12:28:37 2009

This archive was generated by hypermail 2.1.8 : Mon Jul 27 2009 - 12:28:37 CEST