parameters: (self, error)
docstring: Shows the error or hides it if error is None
docstring_summary: Shows the error or hides it if error is None
docstring_tokens: Shows the error or hides it if error is None
function: def showError(self, error):
          '''Shows the error or hides it if error is None'''
          if error:
              self.viewResult.setVisible(False)
              self.errorText.setVisible(True)
              self.errorText.setText(error.msg)
              self.errorText.setWrapMode(QsciScintilla.WrapWord)
          else:
              self.viewResult.setVisible(True)
              self.errorText.setVisible(False)
function_tokens: def showError ( self , error ) : if error : self . viewResult . setVisible ( False ) self . errorText . setVisible ( True ) self . errorText . setText ( error . msg ) self . errorText . setWrapMode ( QsciScintilla . WrapWord ) else : self . viewResult . setVisible ( True ) self . errorText . setVisible ( False )