430 """ |
430 """ |
431 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog |
431 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog |
432 |
432 |
433 details = item.data(0, self.PackageDetailedDataRole) |
433 details = item.data(0, self.PackageDetailedDataRole) |
434 if details: |
434 if details: |
435 dlg = CondaPackageDetailsDialog(details, self) |
435 dlg = CondaPackageDetailsDialog(details, parent=self) |
436 dlg.exec() |
436 dlg.exec() |
437 |
437 |
438 @pyqtSlot(str) |
438 @pyqtSlot(str) |
439 def on_searchEdit_textChanged(self, txt): |
439 def on_searchEdit_textChanged(self, txt): |
440 """ |
440 """ |
654 prefix = self.environmentsComboBox.itemData( |
654 prefix = self.environmentsComboBox.itemData( |
655 self.environmentsComboBox.currentIndex() |
655 self.environmentsComboBox.currentIndex() |
656 ) |
656 ) |
657 if prefix: |
657 if prefix: |
658 dlg = CondaNewEnvironmentDataDialog( |
658 dlg = CondaNewEnvironmentDataDialog( |
659 self.tr("Clone Environment"), False, self |
659 self.tr("Clone Environment"), False, parent=self |
660 ) |
660 ) |
661 if dlg.exec() == QDialog.DialogCode.Accepted: |
661 if dlg.exec() == QDialog.DialogCode.Accepted: |
662 virtEnvName, envName, _ = dlg.getData() |
662 virtEnvName, envName, _ = dlg.getData() |
663 args = [ |
663 args = [ |
664 "--name", |
664 "--name", |
681 """ |
681 """ |
682 Private slot to create a conda environment from a requirements file. |
682 Private slot to create a conda environment from a requirements file. |
683 """ |
683 """ |
684 from .CondaNewEnvironmentDataDialog import CondaNewEnvironmentDataDialog |
684 from .CondaNewEnvironmentDataDialog import CondaNewEnvironmentDataDialog |
685 |
685 |
686 dlg = CondaNewEnvironmentDataDialog(self.tr("Create Environment"), True, self) |
686 dlg = CondaNewEnvironmentDataDialog( |
|
687 self.tr("Create Environment"), True, parent=self |
|
688 ) |
687 if dlg.exec() == QDialog.DialogCode.Accepted: |
689 if dlg.exec() == QDialog.DialogCode.Accepted: |
688 virtEnvName, envName, requirements = dlg.getData() |
690 virtEnvName, envName, requirements = dlg.getData() |
689 args = [ |
691 args = [ |
690 "--name", |
692 "--name", |
691 envName.strip(), |
693 envName.strip(), |