From: Phil E. <ph...@li...> - 2007-10-22 16:16:41
|
Aha! Following an e-mail from Kevin about this, I took a look in the release notes for 2.8.6.0: "Some Menu APIs added to make things more consistent. Added wx.MenuBar.SetMenuLabel, wx.MenuBar.GetMenuLabel, wx.MenuBar.GetMenuLabelText, wx.Menu.GetLabelText, wx.MenuItem.SetItemLabel, wx.MenuItem.GetItemLabel, wx.MenuItem.GetItemLabelText, wx.MenuItem.GetLabelText. The Get...Label functions get the raw label with mnemonics and accelerators, and the Get...LabelText functions get the text only, without mnemonics/accelerators." It looks like some of the code in menu.py can be simplified for this release of wx. I'll take a look when I get home tonight and see what I can come up with. -- Regards Phil Edwards Brighton, UK |