eric7/Documentation/Source/eric7.WebBrowser.WebBrowserJavaScriptConsole.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Documentation/Source/eric7.WebBrowser.WebBrowserJavaScriptConsole.html	Mon May 24 11:19:57 2021 +0200
@@ -0,0 +1,182 @@
+<!DOCTYPE html>
+<html><head>
+<title>eric7.WebBrowser.WebBrowserJavaScriptConsole</title>
+<meta charset="UTF-8">
+<style>
+body {
+    background: #EDECE6;
+    margin: 0em 1em 10em 1em;
+    color: black;
+}
+
+h1 { color: white; background: #85774A; }
+h2 { color: white; background: #85774A; }
+h3 { color: white; background: #9D936E; }
+h4 { color: white; background: #9D936E; }
+    
+a { color: #BA6D36; }
+
+</style>
+</head>
+<body>
+<a NAME="top" ID="top"></a>
+<h1>eric7.WebBrowser.WebBrowserJavaScriptConsole</h1>
+
+<p>
+Module implementing a JavaScript console widget.
+</p>
+<h3>Global Attributes</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Classes</h3>
+
+<table>
+
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole">WebBrowserJavaScriptConsole</a></td>
+<td>Class implementing a JavaScript console widget.</td>
+</tr>
+</table>
+<h3>Functions</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<hr />
+<hr />
+<a NAME="WebBrowserJavaScriptConsole" ID="WebBrowserJavaScriptConsole"></a>
+<h2>WebBrowserJavaScriptConsole</h2>
+
+<p>
+    Class implementing a JavaScript console widget.
+</p>
+<h3>Derived from</h3>
+QTextEdit
+<h3>Class Attributes</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Class Methods</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Methods</h3>
+
+<table>
+
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole.__init__">WebBrowserJavaScriptConsole</a></td>
+<td>Constructor</td>
+</tr>
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole.__appendText">__appendText</a></td>
+<td>Private method to append text to the end.</td>
+</tr>
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole.__handleShowContextMenu">__handleShowContextMenu</a></td>
+<td>Private slot to show the context menu.</td>
+</tr>
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole.javaScriptConsoleMessage">javaScriptConsoleMessage</a></td>
+<td>Public method to show a console message.</td>
+</tr>
+<tr>
+<td><a href="#WebBrowserJavaScriptConsole.keyPressEvent">keyPressEvent</a></td>
+<td>Protected method handling key press events.</td>
+</tr>
+</table>
+<h3>Static Methods</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<a NAME="WebBrowserJavaScriptConsole.__init__" ID="WebBrowserJavaScriptConsole.__init__"></a>
+<h4>WebBrowserJavaScriptConsole (Constructor)</h4>
+<b>WebBrowserJavaScriptConsole</b>(<i>parent=None</i>)
+
+<p>
+        Constructor
+</p>
+<dl>
+
+<dt><i>parent</i></dt>
+<dd>
+reference to the parent widget (QWidget)
+</dd>
+</dl>
+<a NAME="WebBrowserJavaScriptConsole.__appendText" ID="WebBrowserJavaScriptConsole.__appendText"></a>
+<h4>WebBrowserJavaScriptConsole.__appendText</h4>
+<b>__appendText</b>(<i>txt</i>)
+
+<p>
+        Private method to append text to the end.
+</p>
+<dl>
+
+<dt><i>txt</i></dt>
+<dd>
+text to insert (string)
+</dd>
+</dl>
+<a NAME="WebBrowserJavaScriptConsole.__handleShowContextMenu" ID="WebBrowserJavaScriptConsole.__handleShowContextMenu"></a>
+<h4>WebBrowserJavaScriptConsole.__handleShowContextMenu</h4>
+<b>__handleShowContextMenu</b>(<i>coord</i>)
+
+<p>
+        Private slot to show the context menu.
+</p>
+<dl>
+
+<dt><i>coord</i></dt>
+<dd>
+the position of the mouse pointer (QPoint)
+</dd>
+</dl>
+<a NAME="WebBrowserJavaScriptConsole.javaScriptConsoleMessage" ID="WebBrowserJavaScriptConsole.javaScriptConsoleMessage"></a>
+<h4>WebBrowserJavaScriptConsole.javaScriptConsoleMessage</h4>
+<b>javaScriptConsoleMessage</b>(<i>level, message, lineNumber, sourceId</i>)
+
+<p>
+        Public method to show a console message.
+</p>
+<dl>
+
+<dt><i>level</i> (QWebEnginePage.JavaScriptConsoleMessageLevel)</dt>
+<dd>
+severity
+</dd>
+<dt><i>message</i> (str)</dt>
+<dd>
+message to be shown
+</dd>
+<dt><i>lineNumber</i> (int)</dt>
+<dd>
+line number of an error
+</dd>
+<dt><i>sourceId</i> (str)</dt>
+<dd>
+source URL causing the error
+</dd>
+</dl>
+<a NAME="WebBrowserJavaScriptConsole.keyPressEvent" ID="WebBrowserJavaScriptConsole.keyPressEvent"></a>
+<h4>WebBrowserJavaScriptConsole.keyPressEvent</h4>
+<b>keyPressEvent</b>(<i>evt</i>)
+
+<p>
+        Protected method handling key press events.
+</p>
+<dl>
+
+<dt><i>evt</i></dt>
+<dd>
+key press event (QKeyEvent)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial