def update_surface_map(self):
        """Update surface map according to value we get.

        Current surface is update as well to its normal
        state.

        That is, we get a value from a callable and depending
        on its value the appropriate surface map is assigned to the
        'surface_map' attribute.
        """
        current_value = self.get_callable()

        key = (

            current_value
            if isinstance(current_value, bool)

            else self.value == current_value

        )

        self.surface_map = self.top_surface_map[key]

        self.image = self.surface_map["normal"]
Update surface map according to value we get.

        Current surface is update as well to its normal
        state.

        That is, we get a value from a callable and depending
        on its value the appropriate surface map is assigned to the
        'surface_map' attribute.
        
nodezator/menu/command.py