I am trying to write a timetabling program using wxpython for gui and am using the getting started tutorial on the wxpython wiki to get up to speed with wxpython but when I
Somehow it is not a wxpython problem. It is a feature. It is supposed to behavior in this way.
Apple and Microsoft specify slightly different layouts for menubars. (Apple specification. Microsoft specification.) WxWidgets will automatically move certain menus on a Macintosh, to ease the task of writing cross-platform applications with native look and feel on both MS-Windows and Apple Macintosh;
The About/Exit menu item would locate at the dock menu.
Check: https://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X
add this to ~/.bashrc:
export UBUNTU_MENUPROXY=0
from https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/682478
I had the same problem where i could not see the menu bar because it as in the "taskbar" way up there. So you can just add this to your python script if you do not want to permanantly change your .bashrc file
import os
os.environ["UBUNTU_MENUPROXY"]="0"
Someone had a similar issue on the wxPython list. I think the menu was appearing in the "taskbar" or something because the OS had been configured for that, kind of like a Mac. If you're using a custom theme, try a standard one instead. You can also try running the wxPython demo to see if it has the same issue.
I had the same error and I solved it no using standard IDs provided by wxWidgets.
Try with this:
# wx.ID_ABOUT and wx.ID_EXIT are standard ids provided by wxWidgets.
menuAbout = filemenu.Append(102, "&About"," Information about this program")
menuExit = filemenu.Append(103,"E&xit"," Terminate the program")