empty file menu in tutorial

Hello,

I’m trying the main wxPython tutorial. I’m trying to add a file menu using the sample code at http://wiki.wxpython.org/Getting%20Started#Adding_a_menu_bar. I paste exactly the code given at the link into my script and run the script. A File menu appears, but it’s empty. The About and Exit menu items defined in the script do not appear.

I’m running OS X Lion, and my current python is 2.6.4. I have wxPython-unicode-2.8.10.1.

Anyone know what could make that happen?

Thanks,

Gary

It is by design. On the Mac if there are menu items with IDs of wx.ID_EXIT and wx.ID_ABOUT then those menu items are automatically moved to the Application menu where they are supposed to be for all Mac applications. This is what is meant in the "TIP" note below the sample source in that section where it says "to make it look more native."

···

On 3/3/12 7:00 PM, Gary Robinson wrote:

Hello,

I'm trying the main wxPython tutorial. I'm trying to add a file menu
using the sample code at
Getting Started - wxPyWiki. I paste
exactly the code given at the link into my script and run the script. A
File menu appears, but it's empty. The About and Exit menu items defined
in the script do not appear.

I'm running OS X Lion, and my current python is 2.6.4. I have
wxPython-unicode-2.8.10.1.

Anyone know what could make that happen?

--
Robin Dunn
Software Craftsman