X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba2b238e5dd4c270dd2c1e4dd6168f402a0a4e64..b9ac87bc5cbe46227195e32c44e25831f8206e3c:/wxPython/demo/wxMenu.py diff --git a/wxPython/demo/wxMenu.py b/wxPython/demo/wxMenu.py index c373fa43de..bdbf93489b 100644 --- a/wxPython/demo/wxMenu.py +++ b/wxPython/demo/wxMenu.py @@ -19,16 +19,22 @@ class MyFrame(wxFrame): self.CreateStatusBar() self.SetStatusText("This is the statusbar") + tc = wxTextCtrl(self, -1, """ +A bunch of bogus menus have been created for this frame. You +can play around with them to see how they behave and then +check the source for this sample to see how to implement them. +""", style=wxTE_READONLY|wxTE_MULTILINE) + # Prepare the menu bar menuBar = wxMenuBar() # 1st menu from left menu1 = wxMenu() - menu1.Append(101, "Mercury", "This the text in the Statusbar") - menu1.Append(102, "Venus", "") - menu1.Append(103, "Earth", "You may select Earth too") + menu1.Append(101, "&Mercury", "This the text in the Statusbar") + menu1.Append(102, "&Venus", "") + menu1.Append(103, "&Earth", "You may select Earth too") menu1.AppendSeparator() - menu1.Append(104, "Exit", "Close this frame") + menu1.Append(104, "&Close", "Close this frame") # Add menu to the menu bar menuBar.Append(menu1, "&Planets") @@ -145,7 +151,7 @@ class MyFrame(wxFrame): def runTest(frame, nb, log): win = MyFrame(frame, -1, log) frame.otherWin = win - win.Show(true) + win.Show(True) #-------------------------------------------------------------------