>From the Paint activity, Area.py file:<br><br> filename = os.path.join('images', tool['name'] + '.png')<br> pixbuf = gtk.gdk.pixbuf_new_from_file(filename)<br> cursor = gtk.gdk.Cursor(display, pixbuf, 6, 21)<br>
self.window.set_cursor(cursor)<br><br>Gonzalo<br><br><div class="gmail_quote">On Sat, Nov 20, 2010 at 10:52 PM, Erik Blankinship <span dir="ltr"><<a href="mailto:erikb@mediamods.com">erikb@mediamods.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Since "HAND_OPEN" in sugar<div><br></div><div><a href="http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar-00.png" target="_blank">http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar-00.png</a></div>
<div><a href="http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar.cursortheme" target="_blank">http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar.cursortheme</a></div>
<div><br></div>
<div>is not available here:</div><div><br></div><div><a href="http://www.pygtk.org/docs/pygtk/class-gdkcursor.html" target="_blank">http://www.pygtk.org/docs/pygtk/class-gdkcursor.html</a></div><div><br></div><div>How do I use that sugar cursor in a python activity?</div>
<div><br></div><div>(e.g. cursor = gtk.gdk.CLOCK when there is a corresponding key in gdk)</div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>