[Sugar-devel] how to use sugar cursors not in gdk cursor?
Gonzalo Odiard
gonzalo at laptop.org
Wed Nov 24 05:43:25 EST 2010
The last two parameters set the hotspot, but i don't know how to query it.
Gonzalo
On Tue, Nov 23, 2010 at 7:26 PM, Erik Blankinship <erikb at mediamods.com>wrote:
> 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
>>>
>>>
>>
>
> _______________________________________________
> 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/20101124/0972c42d/attachment-0001.html>
More information about the Sugar-devel
mailing list