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

2010-11-24 Thread Gonzalo Odiard
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 er...@mediamods.comwrote: 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

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

2010-11-24 Thread Sascha Silbe
Excerpts from Erik Blankinship's message of Sun Nov 21 04:52:46 +0100 2010: [Cursor hand_open from sugar-artwork] How do I use that sugar cursor in a python activity? Try: gtk.gdk.cursor_new_from_name(gtk.gdk.display_get_default(), 'hand_open') Sascha -- http://sascha.silbe.org/

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

2010-11-23 Thread Gonzalo Odiard
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

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

2010-11-23 Thread Erik Blankinship
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 gonz...@laptop.org wrote: From the Paint activity, Area.py file: filename = os.path.join('images', tool['name'] + '.png')

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

2010-11-20 Thread Erik Blankinship
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