(self, args)
KEY: macro or event trigger definition.
KEY: macro or event trigger definition.
KEY : macro or event trigger definition .
def key_(self, args):
        """KEY: macro or event trigger definition."""
        keynum = values.to_int(next(args))
        error.range_check(1, 255, keynum)
        text = values.next_string(args)
        list(args)
        try:
            self.console.set_macro(keynum, text)
        except ValueError:
            # if out of range of number of macros (12 on Tandy, else 10), it's a trigger definition
            self.basic_events.key[keynum-1].set_trigger(text)
def key_ ( self , args ) : keynum = values . to_int ( next ( args ) ) error . range_check ( 1 , 255 , keynum ) text = values . next_string ( args ) list ( args ) try : self . console . set_macro ( keynum , text ) except ValueError : # if out of range of number of macros (12 on Tandy, else 10), it's a trigger definition self . basic_events . key [ keynum - 1 ] . set_trigger ( text )