wxPython mac: HSCROLL bug, Help menu bar item bug

7stud bbxx789_05ss at yahoo.com
Sat Apr 14 14:29:16 PDT 2007


7stud <bbxx789_05ss <at> yahoo.com> writes:

> 
> imac, os 10.4.7, python 2.4.4, wxPython from this download:
> 
> wxPython2.8-osx-unicode-2.8.3.0-universal10.4-py2.4.dmg
> 
> 
> I'm not really sure how ID's work, but the following code 
> overwrites the Python>About sub item:
> 
> ---------
> import wx
> 
> app = wx.App()
> my_win = wx.Frame(None)
> 
> menu_bar = wx.MenuBar()
> 
> my_menu = wx.Menu()
> my_menu.Append(wx.ID_ABOUT, "My Sub Item1")
> my_menu.Append(1, "My Sub Item2")
> 
> menu_bar.Append(my_menu, "My Menu Item")
> my_win.SetMenuBar(menu_bar)
> 
> my_win.Show()
> app.MainLoop()
> ----------

To clarify what happens:  the result is that "My Menu Item" has one 
sub item "My Sub Item 2".  The sub item "My Sub Item1" gets sent to 
the Python menu bar item and it overwrites the "About" sub item.




xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx



xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx


xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx





More information about the wxpython-users mailing list