[Sugar-devel] how to use sugar cursors not in gdk cursor?

Erik Blankinship erikb at mediamods.com
Tue Nov 23 19:26:04 EST 2010


Thank you for this snippet.

Is there no mechanism to query the system for the hotspots?

On Tue, Nov 23, 2010 at 8:26 AM, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> 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/ad715f40/attachment.html>


More information about the Sugar-devel mailing list