The doodle example did not help much, but your comment about the 'subtle
interaction...' put me on the right path. I added a call to Skip() in the
OnIdle() method, and the UpdateUI events now come through.
I changed:
def OnIdle(self, event):
if self.otherWin:
self.otherWin.Raise()
self.window = self.otherWin
self.otherWin = None
To this:
def OnIdle(self, event):
if self.otherWin:
self.otherWin.Raise()
self.window = self.otherWin
self.otherWin = None
event.Skip()
Thanks!
-Ron
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Friday, May 25, 2001 12:05 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] problems with EVT_UPDATE_UI
I am having a problem using EVT_UPDATE_UI. Specifically, my update methods
appear to never get called. Here is a small sample of how one menu is
built,
and how the method is defined:
I didn't notice anything in your code that is wrong, so it may be some
subtle interaction with other parts of your code...
Does anyone have any working samples? I have not been able to find any.
There is a sample app in the 2.3.0 distribution that uses EVT_UPDATE_UI.
Look in wxPython/samples/doodle/doodle.py.
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users