(self, prompt, keys, callback, *args)
Keys are a set of (word, key) tuples. The appropriate key in the
            word is highlighted.
Keys are a set of (word, key) tuples. The appropriate key in the
            word is highlighted.
Keys are a set of ( word key ) tuples . The appropriate key in the word is highlighted .
def prompt_onekey(self, prompt, keys, callback, *args):
        """
            Keys are a set of (word, key) tuples. The appropriate key in the
            word is highlighted.
        """
        prompt = [prompt, " ("]
        mkup = []
        for i, e in enumerate(keys):
            mkup.extend(common.highlight_key(e[0], e[1]))
            if i < len(keys)-1:
                mkup.append(",")
        prompt.extend(mkup)
        prompt.append(")? ")
        self.onekey = "".join(i[1] for i in keys)
        self.prompt(prompt, "", callback, *args)
def prompt_onekey ( self , prompt , keys , callback , * args ) : prompt = [ prompt , " (" ] mkup = [ ] for i , e in enumerate ( keys ) : mkup . extend ( common . highlight_key ( e [ 0 ] , e [ 1 ] ) ) if i < len ( keys ) - 1 : mkup . append ( "," ) prompt . extend ( mkup ) prompt . append ( ")? " ) self . onekey = "" . join ( i [ 1 ] for i in keys ) self . prompt ( prompt , "" , callback , * args )