import wx

app = wx.App()
frame = wx.Frame( None )

menubar = wx.MenuBar()
frame.SetMenuBar( menubar )

fileMenu = wx.Menu()
menubar.Append( fileMenu, "파일" )
saveItem = wx.MenuItem( id = wx.ID_ANY, text = "저장" )
openItem = wx.MenuItem( id = wx.ID_ANY, text = "열기" )
fileMenu.Append( saveItem )
fileMenu.Append( openItem )

def saving( event ):
    wx.MessageBox( "저장을 눌렀습니다." )
    
frame.Bind( wx.EVT_MENU, saving, saveItem )

helpMenu = wx.Menu()
menubar.Append( helpMenu, "도움말" )	
helpItem = wx.MenuItem( id  = wx.ID_ANY, text = "사용법" )
helpMenu.Append( helpItem )

frame.Show( True )
app.MainLoop()

c5f0c4e68c7c6f3c93bd52b8f54f42c70846deb6
<mask token>


def saving(event):
    wx.MessageBox('저장을 눌렀습니다.')


<mask token>

<mask token>
frame.SetMenuBar(menubar)
<mask token>
menubar.Append(fileMenu, '파일')
<mask token>
fileMenu.Append(saveItem)
fileMenu.Append(openItem)


def saving(event):
    wx.MessageBox('저장을 눌렀습니다.')


frame.Bind(wx.EVT_MENU, saving, saveItem)
<mask token>
menubar.Append(helpMenu, '도움말')
<mask token>
helpMenu.Append(helpItem)
frame.Show(True)
app.MainLoop()

<mask token>
app = wx.App()
frame = wx.Frame(None)
menubar = wx.MenuBar()
frame.SetMenuBar(menubar)
fileMenu = wx.Menu()
menubar.Append(fileMenu, '파일')
saveItem = wx.MenuItem(id=wx.ID_ANY, text='저장')
openItem = wx.MenuItem(id=wx.ID_ANY, text='열기')
fileMenu.Append(saveItem)
fileMenu.Append(openItem)


def saving(event):
    wx.MessageBox('저장을 눌렀습니다.')


frame.Bind(wx.EVT_MENU, saving, saveItem)
helpMenu = wx.Menu()
menubar.Append(helpMenu, '도움말')
helpItem = wx.MenuItem(id=wx.ID_ANY, text='사용법')
helpMenu.Append(helpItem)
frame.Show(True)
app.MainLoop()

import wx
app = wx.App()
frame = wx.Frame(None)
menubar = wx.MenuBar()
frame.SetMenuBar(menubar)
fileMenu = wx.Menu()
menubar.Append(fileMenu, '파일')
saveItem = wx.MenuItem(id=wx.ID_ANY, text='저장')
openItem = wx.MenuItem(id=wx.ID_ANY, text='열기')
fileMenu.Append(saveItem)
fileMenu.Append(openItem)


def saving(event):
    wx.MessageBox('저장을 눌렀습니다.')


frame.Bind(wx.EVT_MENU, saving, saveItem)
helpMenu = wx.Menu()
menubar.Append(helpMenu, '도움말')
helpItem = wx.MenuItem(id=wx.ID_ANY, text='사용법')
helpMenu.Append(helpItem)
frame.Show(True)
app.MainLoop()

import wx

app = wx.App()
frame = wx.Frame( None )

menubar = wx.MenuBar()
frame.SetMenuBar( menubar )

fileMenu = wx.Menu()
menubar.Append( fileMenu, "파일" )
saveItem = wx.MenuItem( id = wx.ID_ANY, text = "저장" )
openItem = wx.MenuItem( id = wx.ID_ANY, text = "열기" )
fileMenu.Append( saveItem )
fileMenu.Append( openItem )

def saving( event ):
    wx.MessageBox( "저장을 눌렀습니다." )
    
frame.Bind( wx.EVT_MENU, saving, saveItem )

helpMenu = wx.Menu()
menubar.Append( helpMenu, "도움말" )	
helpItem = wx.MenuItem( id  = wx.ID_ANY, text = "사용법" )
helpMenu.Append( helpItem )

frame.Show( True )
app.MainLoop()
