npcole / npyscreen

Automatically exported from code.google.com/p/npyscreen
Other
481 stars 109 forks source link

How do I override a key binding? #119

Open MajorDhaliwal opened 3 years ago

MajorDhaliwal commented 3 years ago

How do I override a key binding?


def create(self):

    self.add_handlers({curses.KEY_DOWN: self.any_funct})     

    def any_funct(self):
        #do something