415 """ |
415 """ |
416 details = item.data(0, self.PackageDetailedDataRole) |
416 details = item.data(0, self.PackageDetailedDataRole) |
417 if details: |
417 if details: |
418 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog |
418 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog |
419 dlg = CondaPackageDetailsDialog(details, self) |
419 dlg = CondaPackageDetailsDialog(details, self) |
420 dlg.exec_() |
420 dlg.exec() |
421 |
421 |
422 @pyqtSlot(str) |
422 @pyqtSlot(str) |
423 def on_searchEdit_textChanged(self, txt): |
423 def on_searchEdit_textChanged(self, txt): |
424 """ |
424 """ |
425 Private slot handling changes of the entered search specification. |
425 Private slot handling changes of the entered search specification. |
547 """ |
547 """ |
548 infoDict = self.__conda.getCondaInformation() |
548 infoDict = self.__conda.getCondaInformation() |
549 |
549 |
550 from .CondaInfoDialog import CondaInfoDialog |
550 from .CondaInfoDialog import CondaInfoDialog |
551 dlg = CondaInfoDialog(infoDict, self) |
551 dlg = CondaInfoDialog(infoDict, self) |
552 dlg.exec_() |
552 dlg.exec() |
553 |
553 |
554 @pyqtSlot() |
554 @pyqtSlot() |
555 def __installPackages(self): |
555 def __installPackages(self): |
556 """ |
556 """ |
557 Private slot to install packages. |
557 Private slot to install packages. |
621 prefix = self.environmentsComboBox.itemData( |
621 prefix = self.environmentsComboBox.itemData( |
622 self.environmentsComboBox.currentIndex()) |
622 self.environmentsComboBox.currentIndex()) |
623 if prefix: |
623 if prefix: |
624 dlg = CondaNewEnvironmentDataDialog(self.tr("Clone Environment"), |
624 dlg = CondaNewEnvironmentDataDialog(self.tr("Clone Environment"), |
625 False, self) |
625 False, self) |
626 if dlg.exec_() == QDialog.Accepted: |
626 if dlg.exec() == QDialog.Accepted: |
627 virtEnvName, envName, _ = dlg.getData() |
627 virtEnvName, envName, _ = dlg.getData() |
628 args = [ |
628 args = [ |
629 "--name", |
629 "--name", |
630 envName.strip(), |
630 envName.strip(), |
631 "--clone", |
631 "--clone", |
645 from .CondaNewEnvironmentDataDialog import ( |
645 from .CondaNewEnvironmentDataDialog import ( |
646 CondaNewEnvironmentDataDialog) |
646 CondaNewEnvironmentDataDialog) |
647 |
647 |
648 dlg = CondaNewEnvironmentDataDialog(self.tr("Create Environment"), |
648 dlg = CondaNewEnvironmentDataDialog(self.tr("Create Environment"), |
649 True, self) |
649 True, self) |
650 if dlg.exec_() == QDialog.Accepted: |
650 if dlg.exec() == QDialog.Accepted: |
651 virtEnvName, envName, requirements = dlg.getData() |
651 virtEnvName, envName, requirements = dlg.getData() |
652 args = [ |
652 args = [ |
653 "--name", |
653 "--name", |
654 envName.strip(), |
654 envName.strip(), |
655 "--file", |
655 "--file", |