be05b43451
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
23 lines
551 B
Python
23 lines
551 B
Python
import wx
|
|
|
|
class MyFrame(wx.Frame):
|
|
def __init__(self):
|
|
wx.Frame.__init__(self, None, -1, "Simple Menu Example")
|
|
p = wx.Panel(self)
|
|
menuBar = wx.MenuBar()
|
|
menu = wx.Menu()
|
|
menuBar.Append(menu, "Left Menu")
|
|
menu2 = wx.Menu()
|
|
menuBar.Append(menu2, "Middle Menu")
|
|
menu3 = wx.Menu()
|
|
menuBar.Append(menu3, "Right Menu")
|
|
self.SetMenuBar(menuBar)
|
|
|
|
if __name__ == "__main__":
|
|
app = wx.PySimpleApp()
|
|
frame = MyFrame()
|
|
frame.Show()
|
|
app.MainLoop()
|
|
|
|
|