def set_icon(self, icon):
        if icon:
            qicon = get_cached_qicon(icon)
        else:
            qicon = QIcon()
        self.widget.setIcon(qicon)
Set the icon for the action.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_action.py/QtAction.set_icon