[pygtk] How to momentarily-hover-away / momentarily-disappear-mouse from over the gtk.GenericCellRenderer ?
Ajay Garg
ajaygargnsit at gmail.com
Wed Jul 25 20:48:17 WST 2012
Thanks Bjartur, for the reply.
Bjartur, you could consider my use-case, similar to what happens in case of
a checkbox - the user clicks the checkbox (initially unchecked), by taking
over the mouse-pointer over the checkbox cell; and then the checkbox
reflects back the changed status on the UI (checked state).
The only caveat - this (the change from unchecked-to-checked state) happens
only after the mouse is hovered away from the checkbox-cell. There is no
visible status change on the UI (change from unchecked-to-checked state),
if the mouse-pointer is not hovered away, even though the user has clicked
the checkbox-cell, expecting spontaneous status change on the UI (change
from unchecked-to-checked state).
Regards,
Ajay
On Wed, Jul 25, 2012 at 6:09 PM, Bjartur Thorlacius <svartman95 at gmail.com>wrote:
> On Wed, Jul 25, 2012 at 6:16 AM, Ajay Garg <ajaygargnsit at gmail.com> wrote:
> > So, is there a way to programmatically momentarily-hover-away /
> > momentarily-disappear-mouse from over "cell_favorite" (or rather a
> > "gtk.GenericCellRenderer") ?
> You can warp the mouse pointer to wherever you want. Alternatively,
> you can use a 1x1 (possibly transparent) pixel cursor icon, as
> unclutter does IIRC. You might have to use GDK or XLib.
>
> Do you need to warp the mouse to trigger an event and invoke a
> function? If so, why not just invoke the function directly without
> messing with the user's cursor? The user expects the be under his
> control, most of the time.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120725/e83eccdf/attachment.html>
More information about the pygtk
mailing list