I'm sorry, I guess I wasn't very clear.
I want to take a transient window containing just a gtk.TreeView inside
a gtk.Scrolled and temporarily expand it to the full height of the
screen when the user hovers the pointer over the window.
I agree that just looking for the pointer to enter the window without
any delay would be annoying to the user. I was hoping that I could do
this easily by catching the query-tooltip signal, but that signal seems
to be triggered as soon as the pointer enters the window.
So my question is: is there some signal I could catch when a tooltip is
displayed just to get the timing right for expanding my window. I'm not
actually interested in the tooltip at all. Or do I have to set a timer
and keep checking the position of the pointer after it enters the window
to determine when the pointer has been stationary over my window for at
least 0.5 sec?
Thanks,
Gary
Johan Dahlin wrote:
Gary Jaffe wrote:
Hi Everyone --
I want to catch when the mouse is hovered over a certain widget and
call a method at the same time a tooltip popup would appear.
So I connected the widget to the query-tooltip signal like this.
widget.set_tooltip_text("Hello World!")
widget.connect("query-tooltip", self.hover)
But self.hover is called as soon as the mouse enters the widget's
allocation. There is no delay. There is, however, a delay for the
appearance of the tooltip.
Does anyone know how can I call self.hover at the same time a tooltip
appears?
I think this is a delay internal to gtk+, and it's very likely set for a
reason. You do want to wait a little bit (< 0.5 sec) before displaying
the tooltips, otherwise you would just disturb the users who just want
to use
the applications and are not interested in hints on how to use it.
Johan
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/