def set_focus_map(self, focus_map):
        if focus_map is not None:
            for from_attr, to_attr in focus_map.items():
                if not from_attr.__hash__ or not to_attr.__hash__:
                    raise AttrMapError("%r:%r attribute mapping is invalid.  "
                        "Attributes must be hashable" % (from_attr, to_attr))
        self._focus_map = focus_map
        self._invalidate()
Set the focus attribute mapping dictionary
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/decoration.py/AttrMap.set_focus_map