Nate Lowrie wrote:
> On Thu, Aug 21, 2008 at 10:23 AM, Nate Lowrie <[EMAIL PROTECTED]> wrote:
>> On Thu, Aug 21, 2008 at 10:21 AM, Paul McNett <[EMAIL PROTECTED]> wrote:
>>> Ah, sorry. Nothing we can do then in Dabo, right?
>> I am still futzing with it.  I am wondering if they changed the event
>> scheme because the open and close events are handled by the uiApp
>> object.  Will do some more testing.
> 
> 
> Well, I tracked this bug down!!!  Now, the only question is how to fix
> it.  The cause for this bug is that the Form is catching the event and
> not propagating it to the menus.  In dPemMixin.py, on line 370 we bind
> the EVT_MENU_OPEN to the __wxMenuOpen function on line 512.  The open
> event is firing on the form, but it is never making it to the menu.  I
> have tried a couple of fixes but am getting nowhere.  Paul, Ed,
> suggestions?

Try this:
===================================================================
--- dPemMixin.py        (revision 4468)
+++ dPemMixin.py        (working copy)
@@ -510,7 +510,7 @@


         def __onWxMenuOpen(self, evt):
-               self.raiseEvent(dEvents.MenuOpen, evt)
+               evt.Menu.raiseEvent(dEvents.MenuOpen, evt)


         def __onWxGotFocus(self, evt):

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to