src/eric7/CondaInterface/CondaPackagesWidget.py

branch
eric7
changeset 9582
045e9c076261
parent 9573
9960d19d66b5
child 9653
e67609152c5e
equal deleted inserted replaced
9581:f0428ceedb41 9582:045e9c076261
56 self.layout().setContentsMargins(0, 3, 0, 0) 56 self.layout().setContentsMargins(0, 3, 0, 0)
57 57
58 self.__conda = conda 58 self.__conda = conda
59 59
60 if not CondaInterface.isCondaAvailable(): 60 if not CondaInterface.isCondaAvailable():
61 self.baseWidget.hide() 61 self.availableWidget.hide()
62 self.searchWidget.hide()
63
64 else: 62 else:
65 self.notAvailableWidget.hide() 63 self.notAvailableWidget.hide()
66 64
67 self.__initCondaInterface() 65 self.__initCondaInterface()
68 66
83 81
84 self.refreshButton.setIcon(EricPixmapCache.getIcon("reload")) 82 self.refreshButton.setIcon(EricPixmapCache.getIcon("reload"))
85 self.upgradeButton.setIcon(EricPixmapCache.getIcon("1uparrow")) 83 self.upgradeButton.setIcon(EricPixmapCache.getIcon("1uparrow"))
86 self.upgradeAllButton.setIcon(EricPixmapCache.getIcon("2uparrow")) 84 self.upgradeAllButton.setIcon(EricPixmapCache.getIcon("2uparrow"))
87 self.uninstallButton.setIcon(EricPixmapCache.getIcon("minus")) 85 self.uninstallButton.setIcon(EricPixmapCache.getIcon("minus"))
88 self.searchToggleButton.setIcon(EricPixmapCache.getIcon("find")) 86 self.searchToggleButton_1.setIcon(EricPixmapCache.getIcon("find"))
87 self.searchToggleButton_2.setIcon(EricPixmapCache.getIcon("find"))
89 self.searchButton.setIcon(EricPixmapCache.getIcon("findNext")) 88 self.searchButton.setIcon(EricPixmapCache.getIcon("findNext"))
90 self.installButton.setIcon(EricPixmapCache.getIcon("plus")) 89 self.installButton.setIcon(EricPixmapCache.getIcon("plus"))
91 self.showDetailsButton.setIcon(EricPixmapCache.getIcon("info")) 90 self.showDetailsButton.setIcon(EricPixmapCache.getIcon("info"))
92 91
93 if CondaInterface.condaVersion() >= (4, 4, 0): 92 if CondaInterface.condaVersion() >= (4, 4, 0):
523 """ 522 """
524 if item.parent() is not None: 523 if item.parent() is not None:
525 self.__showDetails(item) 524 self.__showDetails(item)
526 525
527 @pyqtSlot(bool) 526 @pyqtSlot(bool)
528 def on_searchToggleButton_toggled(self, checked): 527 def on_searchToggleButton_1_toggled(self, checked):
529 """ 528 """
530 Private slot to togle the search widget. 529 Private slot to toggle the search widget.
531 530
532 @param checked state of the search widget button 531 @param checked state of the search widget button
533 @type bool 532 @type bool
534 """ 533 """
535 self.searchWidget.setVisible(checked) 534 self.searchWidget.setVisible(checked)
535 self.searchToggleButton_2.setChecked(checked)
536 536
537 if checked: 537 if checked:
538 self.searchEdit.setFocus(Qt.FocusReason.OtherFocusReason) 538 self.searchEdit.setFocus(Qt.FocusReason.OtherFocusReason)
539 self.searchEdit.selectAll() 539 self.searchEdit.selectAll()
540 540
541 self.__updateSearchActionButtons() 541 self.__updateSearchActionButtons()
542
543 @pyqtSlot(bool)
544 def on_searchToggleButton_2_toggled(self, checked):
545 """
546 Private slot to toggle the search widget.
547
548 @param checked state of the search widget button
549 @type bool
550 """
551 self.searchToggleButton_1.setChecked(checked)
542 552
543 ####################################################################### 553 #######################################################################
544 ## Menu related methods below 554 ## Menu related methods below
545 ####################################################################### 555 #######################################################################
546 556

eric ide

mercurial