quit he mouseover [SOLVED]

Hello,

I code an accept event to manage mouseover on a DirectButton.

btn.accept(btn.guiItem.getEnterEvent(),self.mouseOver,[slot,i+1]) 

It works fine.

But I wish to manage the event : no more mouseover. Explanation : When I am over a button, an informative window appears, and when I am no more over the button, I wish to destroy it.

Thanks a lot.

ps: for the moment, it disappears automatically after 3 seconds.

What you need is DGG.WITHIN and DGG.WITHOUT.

btn.bind(DGG.WITHIN,self.mouseOver,[slot,i+1])
btn.bind(DGG.WITHOUT,self.mouseOverClose,[slot,i+1])

DGG is DirectGuiGlobals. If you did from direct.gui.DirectGui import * you don’t need to import anything else.

Oh yes!

Thank you very much