Thu, 30 Dec 2021 12:11:32 +0100
Updated version info to indicate relation to eric7.
<!DOCTYPE html> <html><head> <title>Plugin_Project_Flask.ProjectFlask.AnsiTools</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>Plugin_Project_Flask.ProjectFlask.AnsiTools</h1> <p> Module implementing functions to work with ANSI escape sequences for colors. </p> <h3>Global Attributes</h3> <table> <tr><td>_AnsiColorSchemes</td></tr> </table> <h3>Classes</h3> <table> <tr><td>None</td></tr> </table> <h3>Functions</h3> <table> <tr> <td><a href="#getAvailableColorSchemes">getAvailableColorSchemes</a></td> <td>Function to get a list of available color schemes.</td> </tr> <tr> <td><a href="#getColor">getColor</a></td> <td>Function to get the brush for a given scheme and color.</td> </tr> </table> <hr /> <hr /> <a NAME="getAvailableColorSchemes" ID="getAvailableColorSchemes"></a> <h2>getAvailableColorSchemes</h2> <b>getAvailableColorSchemes</b>(<i></i>) <p> Function to get a list of available color schemes. </p> <dl> <dt>Return:</dt> <dd> list containing the names of the supported color schemes </dd> </dl> <dl> <dt>Return Type:</dt> <dd> list of str </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="getColor" ID="getColor"></a> <h2>getColor</h2> <b>getColor</b>(<i>scheme, color</i>) <p> Function to get the brush for a given scheme and color. </p> <dl> <dt><i>scheme</i> (str)</dt> <dd> name of the color scheme </dd> <dt><i>color</i> (int)</dt> <dd> ANSI color code </dd> </dl> <dl> <dt>Return:</dt> <dd> brush for the given parameters or None in case of error </dd> </dl> <dl> <dt>Return Type:</dt> <dd> QBrush or None </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>