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

Ajay Garg ajaygargnsit at gmail.com
Wed Jul 25 14:16:01 WST 2012


Hi all.

I have a custom subclass of gtk.GenericCellRenderer, CellRendererFavorite.
This is encapsulated within a "gtk.TreeViewColumn".


I guess some code would make things clearer ::

############################################################################
154         cell_favorite = CellRendererFavorite(self.tree_view)
155         cell_favorite.connect('clicked',
self.__favorite_clicked_cb)

156
157         column = gtk.TreeViewColumn()
158         column.props.sizing = gtk.TREE_VIEW_COLUMN_FIXED
159         column.props.fixed_width = cell_favorite.props.width
160         column.pack_start(cell_favorite)
161         column.set_cell_data_func(cell_favorite,
self.__favorite_set_data_cb)
162         self.tree_view.append_column(column)
############################################################################



Now, in the callback function "__favorite_set_data_cb", some of the "props"
(icon-name, color, etc) are changed.
However, the UI effect takes place ONLY when the mouse is hovered away from
"cell_favorite".

So, is there a way to programmatically momentarily-hover-away /
momentarily-disappear-mouse from over "cell_favorite" (or rather a
"gtk.GenericCellRenderer") ?


Will be grateful for a reply.


Thanks and Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120725/768c898d/attachment.html>


More information about the pygtk mailing list