[pygtk] enter-notify: no event while button pressed
Matthew Bull
matthew.bull at telemedicsystems.com
Tue Dec 5 18:52:38 WST 2006
It won't because its gtk sees it as a drag.. which has its own signals
Have a look at gtk.Widget
(http://www.pygtk.org/pygtk2reference/class-gtkwidget.html )
specifically drag_dest_set() and signal drag-motion event, I have some
code somewhere that does this I'll see if I can find it...
Matt
On Mon, 2006-12-04 at 22:10 +0100, Thomas Guettler wrote:
> Hi,
>
> I added the event gtk.gdk.ENTER_NOTIFY_MASK and connected
> enter-notify-event. My callback gets called, but only if
> no mouse button is pressed. If the mouse enters
> the widget while the button is pressed, the callback
> is not called.
>
> Any hints?
>
> The widget is a Label inside an EventBox.
>
> Thomas
>
> Pygtk 2.8 on Ubuntu 6.06
>
More information about the pygtk
mailing list