def set_icon(self, icon):
        if icon:
            qicon = get_cached_qicon(icon)
        else:
            qicon = QIcon()
        self.widget.setWindowIcon(qicon)
Set the window icon.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_window.py/QtWindow.set_icon