Documentation/Source/eric6.WebBrowser.AutoScroll.FrameScroller.html

Tue, 24 Oct 2017 19:09:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 24 Oct 2017 19:09:09 +0200
changeset 5928
a3809f75ca07
parent 4958
ef400197e7d5
permissions
-rw-r--r--

Changed the logic of the two web browsers in order to put new downloads at the top of the list of downloads and add the download date and time to the shown info.

<!DOCTYPE html>
<html><head>
<title>eric6.WebBrowser.AutoScroll.FrameScroller</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>eric6.WebBrowser.AutoScroll.FrameScroller</h1>
<p>
Module implementing an object to scroll a web page.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#FrameScroller">FrameScroller</a></td>
<td>Class implementing a web page scroller object.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="FrameScroller" ID="FrameScroller"></a>
<h2>FrameScroller</h2>
<p>
    Class implementing a web page scroller object.
</p>
<h3>Derived from</h3>
QObject
<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="#FrameScroller.__init__">FrameScroller</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#FrameScroller.__scrollStep">__scrollStep</a></td>
<td>Private slot to scroll one step.</td>
</tr><tr>
<td><a href="#FrameScroller.scrollDivider">scrollDivider</a></td>
<td>Public method to get the current scroll divider value.</td>
</tr><tr>
<td><a href="#FrameScroller.setPage">setPage</a></td>
<td>Public method to set the web page to be scrolled.</td>
</tr><tr>
<td><a href="#FrameScroller.setScrollDivider">setScrollDivider</a></td>
<td>Public method to set the scroll divider value.</td>
</tr><tr>
<td><a href="#FrameScroller.startScrolling">startScrolling</a></td>
<td>Public method to start scrolling.</td>
</tr><tr>
<td><a href="#FrameScroller.stopScrolling">stopScrolling</a></td>
<td>Public method to stop scrolling.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="FrameScroller.__init__" ID="FrameScroller.__init__"></a>
<h4>FrameScroller (Constructor)</h4>
<b>FrameScroller</b>(<i>parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i> (QObject)</dt>
<dd>
reference to the parent object
</dd>
</dl><a NAME="FrameScroller.__scrollStep" ID="FrameScroller.__scrollStep"></a>
<h4>FrameScroller.__scrollStep</h4>
<b>__scrollStep</b>(<i></i>)
<p>
        Private slot to scroll one step.
</p><a NAME="FrameScroller.scrollDivider" ID="FrameScroller.scrollDivider"></a>
<h4>FrameScroller.scrollDivider</h4>
<b>scrollDivider</b>(<i></i>)
<p>
        Public method to get the current scroll divider value.
</p><dl>
<dt>Returns:</dt>
<dd>
scroll divider
</dd>
</dl><dl>
<dt>Return Type:</dt>
<dd>
float
</dd>
</dl><a NAME="FrameScroller.setPage" ID="FrameScroller.setPage"></a>
<h4>FrameScroller.setPage</h4>
<b>setPage</b>(<i>page</i>)
<p>
        Public method to set the web page to be scrolled.
</p><dl>
<dt><i>page</i> (WebBrowserPage)</dt>
<dd>
page to be scrolled
</dd>
</dl><a NAME="FrameScroller.setScrollDivider" ID="FrameScroller.setScrollDivider"></a>
<h4>FrameScroller.setScrollDivider</h4>
<b>setScrollDivider</b>(<i>divider</i>)
<p>
        Public method to set the scroll divider value.
</p><dl>
<dt><i>divider</i> (float)</dt>
<dd>
scroll divider
</dd>
</dl><a NAME="FrameScroller.startScrolling" ID="FrameScroller.startScrolling"></a>
<h4>FrameScroller.startScrolling</h4>
<b>startScrolling</b>(<i>lengthX, lengthY</i>)
<p>
        Public method to start scrolling.
</p><dl>
<dt><i>lengthX</i> (int)</dt>
<dd>
X distance from scroll indicator
</dd><dt><i>lengthY</i> (int)</dt>
<dd>
Y distance from scroll indicator
</dd>
</dl><a NAME="FrameScroller.stopScrolling" ID="FrameScroller.stopScrolling"></a>
<h4>FrameScroller.stopScrolling</h4>
<b>stopScrolling</b>(<i></i>)
<p>
        Public method to stop scrolling.
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial