MECO™ API Reference
|
Static Public Member Functions | |
def | displayInfo (text, startNewLine=True, endNewLine=True, useColor=True) |
Display given text in info format. More... | |
def | displaySuccess (text, startNewLine=True, endNewLine=True, useColor=True) |
Display given text in success format. More... | |
def | displayWarning (text, startNewLine=True, endNewLine=True, useColor=True) |
Display given text in warning format. More... | |
def | displayFailure (text, startNewLine=True, endNewLine=True, useColor=True, stdErr=False) |
Display given text in failure format. More... | |
def | displayHeaderLine (text, startNewLine=True, endNewLine=True, useColor=True) |
Display header line. More... | |
def | displayHeaderText (text, startNewLine=False, endNewLine=False, useColor=True) |
Display header text. More... | |
def | display (text, startNewLine=True, endNewLine=True, useColor=True, color=None, out=sys.stdout) |
Display given text by using file like object. More... | |
def | displayStdOut (text, startNewLine=True, endNewLine=True) |
Display given text by using stdout. More... | |
def | displayStdErr (text, startNewLine=True, endNewLine=True) |
Display given text by using stderr. More... | |
def | displayBlankLine (count=1, out=sys.stdout) |
Display blank lines by giving counts. More... | |
def | getDisplayColor (color) |
Get display color string for given color based on current platform. More... | |
Display class.
|
static |
Display given text in info format.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | False | in ] - Use color to display the text. |
N/A |
|
static |
Display given text in success format.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | False | in ] - Use color to display the text. |
N/A |
|
static |
Display given text in warning format.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | False | in ] - Use color to display the text. |
N/A |
|
static |
Display given text in failure format.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | False | in ] - Use color to display the text. |
stdErr | [ bool | False | in ] - Whether to use sys.stderr instead of sys.stdout. |
N/A |
|
static |
Display header line.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | True | in ] - Use color to display the text. |
N/A |
|
static |
Display header text.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | False | in ] - Display blank line at the start. |
endNewLine | [ bool | False | in ] - Display blank line at the end. |
useColor | [ bool | True | in ] - Use color to display the text. |
N/A |
|
static |
Display given text by using file like object.
text | [ str, list, tuple | None | in ] - Text to be displayed. |
startNewLine | [ bool | True | in ] - Display blank line at the start. |
endNewLine | [ bool | True | in ] - Display blank line at the end. |
useColor | [ bool | False | in ] - Use color to display the text. This argument does nothing if color is not provided. |
color | [ bool | False | in ] - Text to format the color (like ANSI). |
out | [ file | sys.stdout | in ] - sys.stdout or sys.stderr |
N/A |
|
static |
|
static |
|
static |
Display blank lines by giving counts.
count | [ int | 1 | in ] - How many blank lines will be displayed. |
out | [ file | sys.stdout | in ] - sys.stdout or sys.stderr |
N/A |
|
static |
Get display color string for given color
based on current platform.
color | [ enum | None | in ] - Any value from mMeco.displayLib.DisplayColorName enum class. |
N/A |