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
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/
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
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')
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
5 matches
Mail list logo