The last two parameters set the hotspot, but i don't know how to query it.<br><br> Gonzalo<br><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 7:26 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;">Thank you for this snippet.<div><br></div><div>Is there no mechanism to query the system for the hotspots?<br>
<br><div class="gmail_quote"><div class="im">On Tue, Nov 23, 2010 at 8:26 AM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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"><div><div></div><div>On Sat, Nov 20, 2010 at 10:52 PM, Erik Blankinship <span dir="ltr"><<a href="mailto:erikb@mediamods.com" target="_blank">erikb@mediamods.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>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></div></div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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>
</blockquote></div></div></div><br></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>