Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Created on Jul 8, 2010
- @author: blaze
- '''
- import wx
- class File(wx.Menu):
- def __init__(self):
- wx.Menu.__init__(self)
- self.Priority = 0
- self.Label = "File"
- exit = wx.MenuItem(self,wx.ID_EXIT,"E&xit", "Terminate the program")
- self.Bind(wx.EVT_MENU, self.OnExit )
- self.AppendItem(exit)
- def OnExit(self, event):
- print "test"
- wx.GetApp().Frame.Close()
Add Comment
Please, Sign In to add comment