<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Is there a way for Hippo IconButton subclass to grab the mouse? <br>
(I want the button to continue tracking until the mouse button goes up,
no matter where the cursor moves on the screen.) <br>
Do I need to drop down to GTK to do that? <br>
If so, which GTK window do I need to grab, to cause grabbed events to
be delivered to the Hippo canvas? <br>
I tried the obvious one (self._window.window) but that doesn't seem to
work... <br>
Should Hippo have its own API for grabbing the mouse? <br>
<br>
Thanks! <br>
<br>
-Don<br>
<br>
<br>
Marco Pesenti Gritti wrote:
<blockquote cite="mid1176898508.2762.8.camel@localhost.localdomain"
type="cite">
<pre wrap="">On Wed, 2007-04-18 at 09:10 -0300, Rafael Barbolo Lopes wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is it difficult to implement Hippo_Canvas?
Where can I find some written code in Sugar?
</pre>
</blockquote>
<pre wrap=""><!---->
Well, Hippo canvas is pretty simple but it requires good knowledge of
the GObject python bindings and, being a project in early development
stages, it doesn't really have the maturity of gtk (so expect bugs,
missing features etc).
sugar/sugar/graphics has a lot of code which use hippo canvas.
Marco
_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@laptop.org">Devel@laptop.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.laptop.org/mailman/listinfo/devel">http://mailman.laptop.org/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>