[Sugar-devel] Issue No. 2324. Implementing Copy/Paste using Clipboard in Abacus.

Walter Bender walter.bender at gmail.com
Fri Oct 1 03:49:09 EDT 2010


On Fri, Oct 1, 2010 at 3:42 AM, Shanjit Singh Jajmann
<shanjit at dev.seeta.in> wrote:
> Hi,
>
>
> I am working on issue #2324, implementing Copy/Paste in Abacus Activity. I
> had some doubts on the functionality of copy and paste.
>
> According to what i have done,
>
> 1. The copy button when clicked copies any  expression/number present in the
> output(bar) to the clipboard.

You'll want to check to make sure the copied text will convert to a number.
>
> 2. The paste button can however only  paste single numbers and not
> expressions, on the output(bar).

I think you should only copy the result, not the entire expression.
This can be obtained by passing the sum_only=True flag to the method
that reads the value of the abacus.
>
>
> Would this functionality be sufficient?

Sounds good.

-walter

>
>
> Regards
>
> Shan
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list