demo_menu.py
changeset 64 03f591f5fe5c
parent 63 2a0e04091898
child 77 fc1989059e19
equal deleted inserted replaced
63:2a0e04091898 64:03f591f5fe5c
    42 
    42 
    43         menu = Menu([('Copy', None), ('Paste', None)])
    43         menu = Menu([('Copy', None), ('Paste', None)])
    44         menubtn = MenuButton('MenuButton', menu)
    44         menubtn = MenuButton('MenuButton', menu)
    45         self.top.add(menubtn, halign='center', valign='center')
    45         self.top.add(menubtn, halign='center', valign='center')
    46 
    46 
       
    47         helpwin.bring_up()
       
    48 
    47     def on_top_keypress(self, ev):
    49     def on_top_keypress(self, ev):
    48         if ev.keyname == 'escape':
    50         if ev.keyname == 'escape':
    49             self.terminate()
    51             self.terminate()
    50             return True
    52             return True
    51 
    53