[sugar] [PATCH] Add a simple palette for links with an option to copy to the clipboard

Tomeu Vizoso tomeu
Sun May 25 07:27:04 EDT 2008


On Sun, May 25, 2008 at 12:14 PM, Simon Schampijer <simon at schampijer.de> wrote:
> hey tomeu,
>
> thanks for starting to taggle this.
>
> What is the general plan - at the moment this copies the link to the
> clipboard. For example for an image I imagine that this copies the image to
> the clipboard that I can use it in another activity. I guess we want to
> provide both of the functionality copy the link location and copying the
> data.

Yes, the goal is to provide all the options specified here by Eben:
http://dev.laptop.org/ticket/2903

I'm working now on copy image to the clipboard.

> Are there constants we can use instead of '2' and 'a' ?
> if event.button != 2:
>    return
> target = event.target
> if target.tagName.lower() == 'a':

Not that I know :/

> Don't need those in palette.py
> import logging
> import xpcom
> from xpcom import components

Thanks, will push.

Tomeu



More information about the Sugar-devel mailing list