Did you try to bind the events to the controls?
Something like:
your_control.Bind(wx.EVT_ENTER_WINDOW, self.handler)
Ricardo
···
On Mon, 2005-08-29 at 19:32 -0500, Rob Brooks wrote:
Hello, I have a panel which contains a few other widgets. I’m having
a hard time getting EVT_ENTER_WINDOW (mouse event) events to be
processed by the children inside this panel. It seems to me that the
interior child has to have focus to process the event but that really
isn’t practical … because what if I wanted to catch these events for
all the children? Which would have focus?
Yes, the interior controls have the events bound to them. When I bind other
mouse events such as EVT_LEFT_DOWN to them, everything works fine. It's
only with the EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW events that it appears
that the control has to have focus *before* the control will recognize these
events.
···
-----Original Message-----
From: Ricardo Pedroso [mailto:ricardo.pedroso@netvisao.pt]
Sent: Monday, August 29, 2005 7:54 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] mouse events
On Mon, 2005-08-29 at 19:32 -0500, Rob Brooks wrote:
Hello, I have a panel which contains a few other widgets. I'm having
a hard time getting EVT_ENTER_WINDOW (mouse event) events to be
processed by the children inside this panel. It seems to me that the
interior child has to have focus to process the event but that really
isn't practical . because what if I wanted to catch these events for
all the children? Which would have focus?
Did you try to bind the events to the controls?
Something like:
your_control.Bind(wx.EVT_ENTER_WINDOW, self.handler)
Ricardo
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org