--- a/Helpviewer/QtHelpDocumentationDialog.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Helpviewer/QtHelpDocumentationDialog.py Fri Oct 18 23:00:41 2013 +0200 @@ -49,7 +49,8 @@ """ Private slot handling a change of the documents selection. """ - self.removeButton.setEnabled(len(self.documentsList.selectedItems()) != 0) + self.removeButton.setEnabled( + len(self.documentsList.selectedItems()) != 0) @pyqtSlot() def on_addButton_clicked(self): @@ -69,15 +70,17 @@ if not ns: E5MessageBox.warning(self, self.trUtf8("Add Documentation"), - self.trUtf8("""The file <b>{0}</b> is not a valid Qt Help File.""")\ - .format(fileName) + self.trUtf8( + """The file <b>{0}</b> is not a valid""" + """ Qt Help File.""").format(fileName) ) continue if len(self.documentsList.findItems(ns, Qt.MatchFixedString)): E5MessageBox.warning(self, self.trUtf8("Add Documentation"), - self.trUtf8("""The namespace <b>{0}</b> is already registered.""")\ + self.trUtf8( + """The namespace <b>{0}</b> is already registered.""")\ .format(ns) ) continue @@ -95,8 +98,9 @@ """ res = E5MessageBox.question(self, self.trUtf8("Remove Documentation"), - self.trUtf8("""Do you really want to remove the selected documentation """ - """sets from the database?""")) + self.trUtf8( + """Do you really want to remove the selected documentation """ + """sets from the database?""")) if not res: return @@ -108,10 +112,11 @@ if ns in list(openedDocs.values()): res = E5MessageBox.yesNo(self, self.trUtf8("Remove Documentation"), - self.trUtf8("""Some documents currently opened reference the """ - """documentation you are attempting to remove. """ - """Removing the documentation will close those """ - """documents. Remove anyway?"""), + self.trUtf8( + """Some documents currently opened reference the """ + """documentation you are attempting to remove. """ + """Removing the documentation will close those """ + """documents. Remove anyway?"""), icon=E5MessageBox.Warning) if not res: return @@ -125,7 +130,8 @@ self.__engine.unregisterDocumentation(ns) if self.documentsList.count(): - self.documentsList.setCurrentRow(0, QItemSelectionModel.ClearAndSelect) + self.documentsList.setCurrentRow( + 0, QItemSelectionModel.ClearAndSelect) def hasChanges(self): """