129 """ |
129 """ |
130 if self.__activeClass is not None: |
130 if self.__activeClass is not None: |
131 attributeName = self.__activeClass.replace(self.ClassPrefix, "") |
131 attributeName = self.__activeClass.replace(self.ClassPrefix, "") |
132 self.__results[-1][attributeName] = data |
132 self.__results[-1][attributeName] = data |
133 |
133 |
134 def handle_endtag(self, tag): # noqa: U100 |
134 def handle_endtag(self, _tag): |
135 """ |
135 """ |
136 Public method to process the end tag. |
136 Public method to process the end tag. |
137 |
137 |
138 @param tag tag name (all lowercase) |
138 @param _tag tag name (all lowercase) (unused) |
139 @type str |
139 @type str |
140 """ |
140 """ |
141 self.__activeClass = None |
141 self.__activeClass = None |
142 |
142 |
143 def getResults(self): |
143 def getResults(self): |
904 @type bool |
904 @type bool |
905 """ |
905 """ |
906 self.searchToggleButton_1.setChecked(checked) |
906 self.searchToggleButton_1.setChecked(checked) |
907 |
907 |
908 @pyqtSlot(str) |
908 @pyqtSlot(str) |
909 def on_searchNameEdit_textChanged(self, txt): |
909 def on_searchNameEdit_textChanged(self, _txt): |
910 """ |
910 """ |
911 Private slot handling a change of the search term. |
911 Private slot handling a change of the search term. |
912 |
912 |
913 @param txt search term |
913 @param _txt search term (unused) |
914 @type str |
914 @type str |
915 """ |
915 """ |
916 self.__updateSearchButton() |
916 self.__updateSearchButton() |
917 |
917 |
918 @pyqtSlot() |
918 @pyqtSlot() |
1440 """ |
1440 """ |
1441 from .PipPackagesInputDialog import PipPackagesInputDialog |
1441 from .PipPackagesInputDialog import PipPackagesInputDialog |
1442 |
1442 |
1443 venvName = self.environmentsComboBox.currentText() |
1443 venvName = self.environmentsComboBox.currentText() |
1444 if venvName: |
1444 if venvName: |
1445 dlg = PipPackagesInputDialog(self, self.tr("Install Packages")) |
1445 dlg = PipPackagesInputDialog(self.tr("Install Packages")) |
1446 if dlg.exec() == QDialog.DialogCode.Accepted: |
1446 if dlg.exec() == QDialog.DialogCode.Accepted: |
1447 packages, user = dlg.getData() |
1447 packages, user = dlg.getData() |
1448 self.executeInstallPackages(packages, userSite=user) |
1448 self.executeInstallPackages(packages, userSite=user) |
1449 |
1449 |
1450 @pyqtSlot() |
1450 @pyqtSlot() |
1454 """ |
1454 """ |
1455 from .PipFileSelectionDialog import PipFileSelectionDialog |
1455 from .PipFileSelectionDialog import PipFileSelectionDialog |
1456 |
1456 |
1457 venvName = self.environmentsComboBox.currentText() |
1457 venvName = self.environmentsComboBox.currentText() |
1458 if venvName: |
1458 if venvName: |
1459 dlg = PipFileSelectionDialog(self, "package") |
1459 dlg = PipFileSelectionDialog("package") |
1460 if dlg.exec() == QDialog.DialogCode.Accepted: |
1460 if dlg.exec() == QDialog.DialogCode.Accepted: |
1461 package, user = dlg.getData() |
1461 package, user = dlg.getData() |
1462 if package and os.path.exists(package): |
1462 if package and os.path.exists(package): |
1463 self.executeInstallPackages([package], userSite=user) |
1463 self.executeInstallPackages([package], userSite=user) |
1464 |
1464 |