#NEWLINE# def get_cached_qicon( icon ) : #NEWLINE# #INDENT# ' Get the cached QIcon for the Enaml Icon.\n\n    Parameters\n    ----------\n    icon : Icon\n        The Enaml Icon object.\n\n    Returns\n    -------\n    result : QIcon\n        The cached QIcon for the icon. If no cached icon exists, one\n        will be created.\n\n    ' #NEWLINE# qicon = icon . _tkdata #NEWLINE# if ( not isinstance ( qicon , QIcon ) ) : #NEWLINE# #INDENT# qicon = icon . _tkdata = QIcon_from_Icon ( icon ) #NEWLINE# #UNINDENT# return icon