src/eric7/CondaInterface/CondaPackagesWidget.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9573
9960d19d66b5
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
426 Private method to show a dialog with details about a package item. 426 Private method to show a dialog with details about a package item.
427 427
428 @param item reference to the package item 428 @param item reference to the package item
429 @type QTreeWidgetItem 429 @type QTreeWidgetItem
430 """ 430 """
431 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog
432
431 details = item.data(0, self.PackageDetailedDataRole) 433 details = item.data(0, self.PackageDetailedDataRole)
432 if details: 434 if details:
433 from .CondaPackageDetailsWidget import CondaPackageDetailsDialog
434
435 dlg = CondaPackageDetailsDialog(details, self) 435 dlg = CondaPackageDetailsDialog(details, 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):
561 @pyqtSlot() 561 @pyqtSlot()
562 def __aboutConda(self): 562 def __aboutConda(self):
563 """ 563 """
564 Private slot to show some information about the conda installation. 564 Private slot to show some information about the conda installation.
565 """ 565 """
566 from .CondaInfoDialog import CondaInfoDialog
567
566 infoDict = self.__conda.getCondaInformation() 568 infoDict = self.__conda.getCondaInformation()
567
568 from .CondaInfoDialog import CondaInfoDialog
569 569
570 dlg = CondaInfoDialog(infoDict, self) 570 dlg = CondaInfoDialog(infoDict, self)
571 dlg.exec() 571 dlg.exec()
572 572
573 @pyqtSlot() 573 @pyqtSlot()
618 @pyqtSlot() 618 @pyqtSlot()
619 def __generateRequirements(self): 619 def __generateRequirements(self):
620 """ 620 """
621 Private slot to generate a requirements file. 621 Private slot to generate a requirements file.
622 """ 622 """
623 from .CondaExportDialog import CondaExportDialog
624
623 prefix = self.environmentsComboBox.itemData( 625 prefix = self.environmentsComboBox.itemData(
624 self.environmentsComboBox.currentIndex() 626 self.environmentsComboBox.currentIndex()
625 ) 627 )
626 if prefix: 628 if prefix:
627 env = self.environmentsComboBox.currentText() 629 env = self.environmentsComboBox.currentText()
628
629 from .CondaExportDialog import CondaExportDialog
630 630
631 self.__requirementsDialog = CondaExportDialog(self.__conda, env, prefix) 631 self.__requirementsDialog = CondaExportDialog(self.__conda, env, prefix)
632 self.__requirementsDialog.show() 632 self.__requirementsDialog.show()
633 QApplication.processEvents() 633 QApplication.processEvents()
634 self.__requirementsDialog.start() 634 self.__requirementsDialog.start()

eric ide

mercurial