>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 <er...@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@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to