661 @rtype bool |
661 @rtype bool |
662 """ |
662 """ |
663 res = False |
663 res = False |
664 if packages and venvName: |
664 if packages and venvName: |
665 dlg = DeleteFilesConfirmationDialog( |
665 dlg = DeleteFilesConfirmationDialog( |
666 self.parent(), |
666 self.__ui, |
667 self.tr("Uninstall Packages"), |
667 self.tr("Uninstall Packages"), |
668 self.tr("Do you really want to uninstall these packages?"), |
668 self.tr("Do you really want to uninstall these packages?"), |
669 packages, |
669 packages, |
670 ) |
670 ) |
671 if dlg.exec() == QDialog.DialogCode.Accepted: |
671 if dlg.exec() == QDialog.DialogCode.Accepted: |
700 reqs = f.read().splitlines() |
700 reqs = f.read().splitlines() |
701 except OSError: |
701 except OSError: |
702 return |
702 return |
703 |
703 |
704 dlg = DeleteFilesConfirmationDialog( |
704 dlg = DeleteFilesConfirmationDialog( |
705 self.parent(), |
705 self.__ui, |
706 self.tr("Uninstall Packages"), |
706 self.tr("Uninstall Packages"), |
707 self.tr("Do you really want to uninstall these packages?"), |
707 self.tr("Do you really want to uninstall these packages?"), |
708 reqs, |
708 reqs, |
709 ) |
709 ) |
710 if dlg.exec() == QDialog.DialogCode.Accepted: |
710 if dlg.exec() == QDialog.DialogCode.Accepted: |
774 if pipre.search(dependency): |
774 if pipre.search(dependency): |
775 dependencies.remove(dependency) # noqa: M-569 |
775 dependencies.remove(dependency) # noqa: M-569 |
776 break |
776 break |
777 |
777 |
778 dlg = DeleteFilesConfirmationDialog( |
778 dlg = DeleteFilesConfirmationDialog( |
779 self.parent(), |
779 self.__ui, |
780 self.tr("Uninstall Packages"), |
780 self.tr("Uninstall Packages"), |
781 self.tr("Do you really want to uninstall these packages?"), |
781 self.tr("Do you really want to uninstall these packages?"), |
782 dependencies, |
782 dependencies, |
783 ) |
783 ) |
784 if dlg.exec() == QDialog.DialogCode.Accepted: |
784 if dlg.exec() == QDialog.DialogCode.Accepted: |