[pygtk] How to momentarily-hover-away / momentarily-disappear-mouse from over the gtk.GenericCellRenderer ?

Bjartur Thorlacius svartman95 at gmail.com
Wed Jul 25 20:39:33 WST 2012


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.


More information about the pygtk mailing list