(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."""
        if num > self._num_fn_keys:
            raise ValueError('Function key number out of range')
        # NUL terminates macro string, rest is ignored
        # macro starting with NUL is empty macro
        self._keyboard.set_macro(num, macro)
        self._update_bar()
        self._text_screen.redraw_bar()
def set_macro ( self , num , macro ) : if num > self . _num_fn_keys : raise ValueError ( 'Function key number out of range' ) # NUL terminates macro string, rest is ignored # macro starting with NUL is empty macro self . _keyboard . set_macro ( num , macro ) self . _update_bar ( ) self . _text_screen . redraw_bar ( )