def _redraw(self, result):
        """Method to invalidate icon cache and redraw icons."""
        self._invalidate_icons()
        if self.on_icon_changed is not None:
            self.on_icon_changed(self)
Method to invalidate icon cache and redraw icons.
libqtile/widget/helpers/status_notifier/statusnotifier.py