From 708cbde90e7fdbebb1d3d8ac7b67aeb473f9f136 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 19 Apr 2023 16:13:01 +0200 Subject: [PATCH] FEM: pep8 code formatting --- src/Mod/Fem/femguiutils/selection_widgets.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/femguiutils/selection_widgets.py b/src/Mod/Fem/femguiutils/selection_widgets.py index 6d93fc92f8..bd89614e84 100644 --- a/src/Mod/Fem/femguiutils/selection_widgets.py +++ b/src/Mod/Fem/femguiutils/selection_widgets.py @@ -264,20 +264,21 @@ class GeometryElementsSelection(QtGui.QWidget): def initUI(self): # ArchPanel is coded without ui-file too # title - self.setWindowTitle( - self.tr("Geometry reference selector for a") + " " + self.sel_elem_text - ) + self.setWindowTitle(self.tr( + "Geometry reference selector for a {}" + ).format(self.sel_elem_text)) # button self.pushButton_Add = QtGui.QPushButton(self.tr("Add")) # label self._helpTextLbl = QtGui.QLabel() self._helpTextLbl.setWordWrap(True) helpTextPart1 = self.tr( - 'Click on "Add" and select geometric elements to add them to the list.{}The following geometry elements can be selected: {}{}{}' + 'Click on "Add" and select geometric elements to add them to the list.{}' + "The following geometry elements can be selected: {}{}{}" ).format("
", "", self.sel_elem_text, "") helpTextEmpty = self.tr( - "{}If no geometry is added to the list, all remaining ones are used.").format("
" - ) + "{}If no geometry is added to the list, all remaining ones are used." + ).format("
") if self.showHintEmptyList is True: self._helpTextLbl.setText( helpTextPart1 + helpTextEmpty