[Sugar-devel] how to use sugar cursors not in gdk cursor?
Gonzalo Odiard
gonzalo at laptop.org
Tue Nov 23 08:26:59 EST 2010
>From the Paint activity, Area.py file:
filename = os.path.join('images', tool['name'] + '.png')
pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
cursor = gtk.gdk.Cursor(display, pixbuf, 6, 21)
self.window.set_cursor(cursor)
Gonzalo
On Sat, Nov 20, 2010 at 10:52 PM, Erik Blankinship <erikb at mediamods.com>wrote:
> Since "HAND_OPEN" in sugar
>
>
> http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar-00.png
>
> http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar.cursortheme
>
> is not available here:
>
> http://www.pygtk.org/docs/pygtk/class-gdkcursor.html
>
> How do I use that sugar cursor in a python activity?
>
> (e.g. cursor = gtk.gdk.CLOCK when there is a corresponding key in gdk)
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101123/c39bcca0/attachment.html>
More information about the Sugar-devel
mailing list