(self, num, macro)
Set macro for given function key.
Set macro for given function key.
Set macro for given function key .
def set_macro(self, num, macro):
        """Set macro for given function key."""
        # NUL terminates macro string, rest is ignored
        # macro starting with NUL is empty macro
        self._key_replace[num-1] = macro.split(b'\0', 1)[0]
def set_macro ( self , num , macro ) : # NUL terminates macro string, rest is ignored # macro starting with NUL is empty macro self . _key_replace [ num - 1 ] = macro . split ( b'\0' , 1 ) [ 0 ]