예제 #1
0
 def make_menu(self):
     window.make_menu(self)
     menu = wx.Menu()
     ## Constellation Menu Item
     id = wx.NewId()
     item = menu.Append (id, 'C&onstellation', 'Constellation')
     self.Bind (wx.EVT_MENU, self.AddConstellation, item)
     ## Channel Menu Item
     id = wx.NewId()
     item = menu.Append(id, '&Channel', 'Channel')
     self.Bind(wx.EVT_MENU, self.AddChannel, item)
     ## Demo Panel - (optional)
     id = wx.NewId()
     item = menu.Append(id, '&Demo Panel', 'Demo Panel')
     self.Bind(wx.EVT_MENU, self.AddDemoPanel, item)
     self.mainmenu.Append (menu, "&Plot")
예제 #2
0
 def make_menu(self):
     window.make_menu(self)