def customMessage(self, messageType, text): if type == 'info': showInfoMessage(self.session, text, self.timeout) elif type == 'warning': showWarningMessage(self.session, text, self.timeout) elif type == 'error': showErrorMessage(self.session, text, self.timeout)
def errorMessage(self, text): showErrorMessage(self.session, self.messageFormat % (self.__class__.errorName, text), self.timeout)