Hi Martin,
Thanx a lot for your reply. Well, now I have shifted from using a
notebook to a vbox instead, and this seems to be much more robust and
faster than the earlier implementation of notebook.
Code-
1. the AbiwordActivity.py can be found at http://pastebin.be/19979 .
2. the toolbar.py at http://pastebin.be/19980 .
Attachments--
1. I am also attaching the files which I am using in the code, n1.odt
, n2.odt and n4.odt . Sorry for .odt instead of .abw but that is what
write produces by default.
2. Both the files abiwordactivity.py and toolbar.py .
Things required to be done to run the code--
1. Just replace the 2 files in the write activity bundle on the xo.
2. Place the odt files at
/home/olpc/isolation/1/uid_to_home_dir/10008/data folder , 10008 could
be any other no depending upon your instance, in any case contents of
all data folders are shared.
Sorry for this actually I am writing the code to do this
programmatically using the shutil module but it is still in progress.
Moreover, I am creating the gui thing in other module and its still in
progress, so attaching files which actually covers the problems I am
facing.
Though the code is still in bad shape as I was still testing the
things out, but I have commented it so that it would not be a problem
to understand the code. Also, I haven't added too much of code.
Here are 2 problems I am facing --
1. I think the crash problem has been reduced by the vbox
implementation, still it crashes rarely, can't say about reliability
as the documents will increase.
2. When I copies the content of n2.odt which contains a textbox to be
copied, sometimes the page is added properly and the content is copied
to the newly added page however sometimes, the page is added but the
textbox is copied over to the current page and the content to the
newly added page. A bit strange but don't know why is it happening.
In case I replace insBreak with insertPageBreak on line 606 in
toolbar.py, sometimes the new page simply fails to be added, it says
'libglade failed to load' and shows some warning on the same line in
the log.
Kindly let me know if you wanted anything in some other format or
require some other information from my end.
Kind regards,
sumit.
>
> Hi Summit,
> All excellent ideas that should work if the current
> implementation reliably supported multiple canvases.
>
> Can you email me your python code and I'll use it to debug the
> multiple canvas issue.
>
> Thank you,
>
> Martin
>
This archive was generated by hypermail 2.1.8 : Sat Jul 25 2009 - 12:48:51 CEST