src/eric7/Documentation/Source/eric7.WebBrowser.SafeBrowsing.SafeBrowsingLabel.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.SafeBrowsing.SafeBrowsingLabel</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.SafeBrowsing.SafeBrowsingLabel</h1>
<p>
Module implementing the label to show some SSL info.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#SafeBrowsingLabel">SafeBrowsingLabel</a></td>
<td>Class implementing a label to show some Safe Browsing info.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="SafeBrowsingLabel" ID="SafeBrowsingLabel"></a>
<h2>SafeBrowsingLabel</h2>
<p>
    Class implementing a label to show some Safe Browsing info.
</p>

<h3>Signals</h3>
<dl>

<dt>clicked(pos)</dt>
<dd>
emitted to indicate a click of the label (QPoint)
</dd>
</dl>
<h3>Derived from</h3>
QLabel
<h3>Class Attributes</h3>
<table>
<tr><td>nokStyle</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#SafeBrowsingLabel.__init__">SafeBrowsingLabel</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#SafeBrowsingLabel.__updateLabel">__updateLabel</a></td>
<td>Private slot to update the label text.</td>
</tr>
<tr>
<td><a href="#SafeBrowsingLabel.getThreatInfo">getThreatInfo</a></td>
<td>Public method to get the threat info text.</td>
</tr>
<tr>
<td><a href="#SafeBrowsingLabel.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td>
<td>Protected method to handle mouse double click events.</td>
</tr>
<tr>
<td><a href="#SafeBrowsingLabel.mouseReleaseEvent">mouseReleaseEvent</a></td>
<td>Protected method to handle mouse release events.</td>
</tr>
<tr>
<td><a href="#SafeBrowsingLabel.setThreatInfo">setThreatInfo</a></td>
<td>Public slot to set threat information.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="SafeBrowsingLabel.__init__" ID="SafeBrowsingLabel.__init__"></a>
<h4>SafeBrowsingLabel (Constructor)</h4>
<b>SafeBrowsingLabel</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="SafeBrowsingLabel.__updateLabel" ID="SafeBrowsingLabel.__updateLabel"></a>
<h4>SafeBrowsingLabel.__updateLabel</h4>
<b>__updateLabel</b>(<i></i>)
<p>
        Private slot to update the label text.
</p>

<a NAME="SafeBrowsingLabel.getThreatInfo" ID="SafeBrowsingLabel.getThreatInfo"></a>
<h4>SafeBrowsingLabel.getThreatInfo</h4>
<b>getThreatInfo</b>(<i></i>)
<p>
        Public method to get the threat info text.
</p>

<dl>
<dt>Return:</dt>
<dd>
threat info text
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
str
</dd>
</dl>
<a NAME="SafeBrowsingLabel.mouseDoubleClickEvent" ID="SafeBrowsingLabel.mouseDoubleClickEvent"></a>
<h4>SafeBrowsingLabel.mouseDoubleClickEvent</h4>
<b>mouseDoubleClickEvent</b>(<i>evt</i>)
<p>
        Protected method to handle mouse double click events.
</p>

<dl>

<dt><i>evt</i> (QMouseEvent)</dt>
<dd>
reference to the mouse event
</dd>
</dl>
<a NAME="SafeBrowsingLabel.mouseReleaseEvent" ID="SafeBrowsingLabel.mouseReleaseEvent"></a>
<h4>SafeBrowsingLabel.mouseReleaseEvent</h4>
<b>mouseReleaseEvent</b>(<i>evt</i>)
<p>
        Protected method to handle mouse release events.
</p>

<dl>

<dt><i>evt</i> (QMouseEvent)</dt>
<dd>
reference to the mouse event
</dd>
</dl>
<a NAME="SafeBrowsingLabel.setThreatInfo" ID="SafeBrowsingLabel.setThreatInfo"></a>
<h4>SafeBrowsingLabel.setThreatInfo</h4>
<b>setThreatInfo</b>(<i>threatType, threatMessages</i>)
<p>
        Public slot to set threat information.
</p>

<dl>

<dt><i>threatType</i> (str)</dt>
<dd>
threat type
</dd>
<dt><i>threatMessages</i> (str)</dt>
<dd>
more verbose info about detected threats
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial