- self.menu = m = wxMenu()
- m.Append(wxID_NEW, "&New")
- m.Append(wxID_OPEN, "&Open...")
- m.Append(wxID_CLOSE, "&Close")
- m.Append(wxID_SAVE, "&Save")
- m.Append(wxID_SAVEAS, "Save &as...")
- m.Enable(wxID_NEW, false)
- m.Enable(wxID_CLOSE, false)
- m.Enable(wxID_SAVE, false)
- m.Enable(wxID_SAVEAS, false)
+ self.menu = m = wx.Menu()
+
+ # Little know wx Fact #42: there are a number of pre-set IDs
+ # in the wx package, to be used for common controls such as those
+ # illustrated below. Neat, huh?
+ m.Append(wx.ID_NEW, "&New")
+ m.Append(wx.ID_OPEN, "&Open...")
+ m.Append(wx.ID_CLOSE, "&Close")
+ m.Append(wx.ID_SAVE, "&Save")
+ m.Append(wx.ID_SAVEAS, "Save &as...")
+ m.Enable(wx.ID_NEW, False)
+ m.Enable(wx.ID_CLOSE, False)
+ m.Enable(wx.ID_SAVE, False)
+ m.Enable(wx.ID_SAVEAS, False)