ProjectFlask/Documentation/source/Plugin_Project_Flask.ProjectFlask.AnsiTools.html

Tue, 10 Dec 2024 15:48:59 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 10 Dec 2024 15:48:59 +0100
branch
eric7
changeset 87
075f7667f69d
parent 67
ca1f40d179ce
permissions
-rw-r--r--

Updated copyright for 2025.

<!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>

eric ide

mercurial