Get an icon for this interface. If the icon is in the cache, use that.
If not, start a download. If we already started a download (successful or
not) do nothing.
@return: The cached icon's path, or None if no icon is currently available.
@rtype: str

00627 :
"""Get an icon for this interface. If the icon is in the cache, use that. If not, start a download. If we already started a download (successful or not) do nothing. @return: The cached icon's path, or None if no icon is currently available. @rtype: str"""
path = iface_cache.get_icon_path(iface)
if path:
return path
if self.network_use == network_offline:
info("No icon present for %s, but off-line so not downloading", iface)
returnNone
self.begin_icon_download(iface)
returnNonedef get_best_source(self, impl):