[sugar] clipboard questions

Erik Blankinship erikb at mediamods.com
Sat Jul 21 18:00:23 EDT 2007


I would like to put images taken with the camera onto the clipboard.

I am able to put images taken with the camera onto the clipboard this way:

self.clipBoard = gtk.Clipboard(display=gtk.gdk.display_get_default(),
selection="CLIPBOARD")
...
#todo: should probably listen for a CTRL+C callback, but how?
self.clipBoard.set_image( pixbuf )

My questions are:

   1. How do I listen for Control+C events to call
   self.clipBoard.set_image( pixbuf )?
   2. Is there anything else to it?  Images I put on the clipboard now do
   not have either a name or an "Open" menuitem.  Is there a spec somewhere for
   what metadata we should associate with clipboard data?
   3. Is there an example of using drag and drop in sugar to the
   clipboard?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20070721/53cca8f6/attachment.htm 


More information about the Sugar mailing list