Message module for autopylot. This module contains functions for displaying messages to the user.
Examples:
>>> from autopylot import message
>>> message.info(message='Hello World!')
>>> message.error(message='Hello World!')
>>> message.warning(message='Hello World!')
The module contains the following functions:
info(message, title)
: Display an info message to the user.
error(message, title)
: Display an error message to the user.
warning(message, title)
: Display a warning message to the user.
error(message, title='PyBOTs')
Display an error message to the user.
Parameters:
Name |
Type |
Description |
Default |
message |
str
|
Message to display |
required
|
title |
str
|
Title of the message. |
'PyBOTs'
|
Returns:
Type |
Description |
None
|
None |
Examples:
>>> message.error(message='Bad news world!', title='PyBOTs')
info(message, title='PyBOTs')
Display an info message to the user.
Parameters:
Name |
Type |
Description |
Default |
message |
str
|
Message to display |
required
|
title |
str
|
Title of the message. |
'PyBOTs'
|
Returns:
Type |
Description |
None
|
None |
Examples:
>>> message.info(message='Hello World!', title='PyBOTs')
warning(message, title='PyBOTs')
Display a warning message to the user.
Parameters:
Name |
Type |
Description |
Default |
message |
str
|
Message to display |
required
|
title |
str
|
Title of the message. |
'PyBOTs'
|
Returns:
Type |
Description |
None
|
None |
Examples:
>>> message.error(message='About to Boom World!', title='PyBOTs')