--- a/Preferences/ConfigurationPages/HelpVirusTotalPage.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Preferences/ConfigurationPages/HelpVirusTotalPage.py Fri Oct 18 23:00:41 2013 +0200 @@ -35,7 +35,8 @@ from Helpviewer.VirusTotalApi import VirusTotalAPI self.__vt = VirusTotalAPI(self) - self.__vt.checkServiceKeyFinished.connect(self.__checkServiceKeyFinished) + self.__vt.checkServiceKeyFinished.connect( + self.__checkServiceKeyFinished) # set initial values self.vtEnabledCheckBox.setChecked( @@ -77,7 +78,8 @@ protocol = "https" else: protocol = "http" - self.__vt.checkServiceKeyValidity(self.vtServiceKeyEdit.text(), protocol) + self.__vt.checkServiceKeyValidity( + self.vtServiceKeyEdit.text(), protocol) @pyqtSlot(bool, str) def __checkServiceKeyFinished(self, result, msg): @@ -88,14 +90,17 @@ @param msg network error message (str) """ if result: - self.testResultLabel.setText(self.trUtf8("The service key is valid.")) + self.testResultLabel.setText( + self.trUtf8("The service key is valid.")) else: if msg == "": self.testResultLabel.setText(self.trUtf8( - '<font color="#FF0000">The service key is not valid.</font>')) + '<font color="#FF0000">The service key is' + ' not valid.</font>')) else: self.testResultLabel.setText(self.trUtf8( - '<font color="#FF0000"><b>Error:</b> {0}</font>').format(msg)) + '<font color="#FF0000"><b>Error:</b> {0}</font>')\ + .format(msg)) def create(dlg): @@ -103,6 +108,7 @@ Module function to create the configuration page. @param dlg reference to the configuration dialog + @return reference to the instantiated page (ConfigurationPageBase) """ page = HelpVirusTotalPage(dlg) return page