def refresh_uninstall_button(self):
        """Refresh uninstall button enable state"""
        nbp = len(self.untable.get_selected_packages())
        self.uninstall_action.setEnabled(nbp > 0)
dataset/ETHPy150Open winpython/winpython/winpython/controlpanel.py/PMWindow.refresh_uninstall_button/original