]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/wxPIA_book/Chapter-03/menu_event.py
move wxPython to new trunk
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-03 / menu_event.py
diff --git a/wxPython/samples/wxPIA_book/Chapter-03/menu_event.py b/wxPython/samples/wxPIA_book/Chapter-03/menu_event.py
deleted file mode 100644 (file)
index da133f6..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env python
-
-import wx
-
-class MenuEventFrame(wx.Frame):
-    
-    def __init__(self, parent, id):
-        wx.Frame.__init__(self, parent, id, 'Menus', size=(300, 200))
-        menuBar = wx.MenuBar()
-        menu1 = wx.Menu()
-        menuItem = menu1.Append(-1, "&Exit...")
-        menuBar.Append(menu1, "&File")
-        self.SetMenuBar(menuBar)
-        self.Bind(wx.EVT_MENU, self.OnCloseMe, menuItem)
-
-    def OnCloseMe(self, event):
-        self.Close(True)
-        
-if __name__ == '__main__':
-    app = wx.PySimpleApp()
-    frame = MenuEventFrame(parent=None, id=-1)
-    frame.Show()
-    app.MainLoop()
-