Skip to content

Commit

Permalink
Version bump and docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimbali committed Mar 23, 2017
1 parent 2cc4f74 commit 905cdfc
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 43 deletions.
4 changes: 2 additions & 2 deletions docs/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -323,7 +323,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/gi/overrides/Gtk.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -1733,7 +1733,7 @@ <h1>Source code for gi.overrides.Gtk</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<br />
<a href="../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -182,7 +182,7 @@ <h1>All modules for which code is available</h1>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pympress/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -899,7 +899,7 @@ <h1>Source code for pympress.document</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pympress/surfacecache.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -474,7 +474,7 @@ <h1>Source code for pympress.surfacecache</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
20 changes: 7 additions & 13 deletions docs/_modules/pympress/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -309,7 +309,7 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<span class="n">redraw_timeout</span> <span class="o">=</span> <span class="mi">0</span>

<span class="c1">#: Current :class:`~pympress.document.Document` instance.</span>
<span class="n">doc</span> <span class="o">=</span> <span class="kc">None</span>
<span class="n">doc</span> <span class="o">=</span> <span class="n">pympress</span><span class="o">.</span><span class="n">document</span><span class="o">.</span><span class="n">EmptyDocument</span><span class="p">()</span>

<span class="c1">#: Whether to use notes mode or not</span>
<span class="n">notes_mode</span> <span class="o">=</span> <span class="kc">False</span>
Expand Down Expand Up @@ -387,10 +387,9 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<span class="c1"># The :class:`UI` singleton, since there is only one (as a class variable). Used by classmethods only.</span>
<span class="n">_instance</span> <span class="o">=</span> <span class="kc">None</span>

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">docpath</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">ett</span> <span class="o">=</span> <span class="mi">0</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">ett</span> <span class="o">=</span> <span class="mi">0</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Args:</span>
<span class="sd"> docpath (string): the path to the document to open</span>
<span class="sd"> ett (int): the estimated (intended) talk time</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">UI</span><span class="o">.</span><span class="n">_instance</span> <span class="o">=</span> <span class="bp">self</span>
Expand All @@ -405,9 +404,6 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<span class="n">Gtk</span><span class="o">.</span><span class="n">STYLE_PROVIDER_PRIORITY_APPLICATION</span>
<span class="p">)</span>

<span class="c1"># Document</span>
<span class="bp">self</span><span class="o">.</span><span class="n">doc</span> <span class="o">=</span> <span class="n">pympress</span><span class="o">.</span><span class="n">document</span><span class="o">.</span><span class="n">Document</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">docpath</span><span class="p">)</span>

<span class="c1"># Use notes mode by default if the document has notes</span>
<span class="bp">self</span><span class="o">.</span><span class="n">notes_mode</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">has_notes</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">show_annotations</span> <span class="o">=</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">notes_mode</span>
Expand Down Expand Up @@ -514,7 +510,7 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>

<span class="bp">self</span><span class="o">.</span><span class="n">show_bigbuttons</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">config</span><span class="o">.</span><span class="n">getboolean</span><span class="p">(</span><span class="s1">&#39;presenter&#39;</span><span class="p">,</span> <span class="s1">&#39;show_bigbuttons&#39;</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">get_adjustment</span><span class="p">()</span><span class="o">.</span><span class="n">set_upper</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">pages_number</span><span class="p">())</span>
<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">set_range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">pages_number</span><span class="p">())</span>
<span class="bp">self</span><span class="o">.</span><span class="n">hb_cur</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="p">)</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">notes_mode</span><span class="p">:</span>
Expand Down Expand Up @@ -557,10 +553,7 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">hpaned</span><span class="o">.</span><span class="n">set_position</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="nb">round</span><span class="p">(</span><span class="n">pane_size</span> <span class="o">*</span> <span class="n">avail_size</span><span class="p">)))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">on_page_change</span><span class="p">(</span><span class="kc">False</span><span class="p">)</span>

<span class="n">GLib</span><span class="o">.</span><span class="n">idle_add</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">resize_annotation_list</span><span class="p">)</span>

<span class="c1"># delayed check for a file, prompt which to open</span>
<span class="n">GLib</span><span class="o">.</span><span class="n">idle_add</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">pages_number</span><span class="p">()</span> <span class="o">&gt;</span> <span class="mi">0</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">pick_file</span><span class="p">())</span></div>
<span class="n">GLib</span><span class="o">.</span><span class="n">idle_add</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">resize_annotation_list</span><span class="p">)</span></div>


<div class="viewcode-block" id="UI.load_time_colors"><a class="viewcode-back" href="../../pympress.html#pympress.ui.UI.load_time_colors">[docs]</a> <span class="k">def</span> <span class="nf">load_time_colors</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
Expand Down Expand Up @@ -1327,6 +1320,7 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">grab_focus</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">editing_cur</span> <span class="o">=</span> <span class="kc">True</span>

<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">set_range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">pages_number</span><span class="p">())</span>
<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">set_value</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">doc</span><span class="o">.</span><span class="n">current_page</span><span class="p">()</span><span class="o">.</span><span class="n">number</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">spin_cur</span><span class="o">.</span><span class="n">select_region</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>

Expand Down Expand Up @@ -2033,7 +2027,7 @@ <h1>Source code for pympress.ui</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pympress/util.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -400,7 +400,7 @@ <h1>Source code for pympress.util</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/pympress/vlcvideo.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="../../index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -360,7 +360,7 @@ <h1>Source code for pympress.vlcvideo</h1><div class="highlight"><pre>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -866,7 +866,7 @@ <h2 id="Y">Y</h2>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="#" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -231,7 +231,7 @@ <h2>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -220,7 +220,7 @@ <h1>Python Module Index</h1>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
12 changes: 6 additions & 6 deletions docs/pympress.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -195,7 +195,7 @@ <h3><a class="reference internal" href="#module-pympress.ui" title="pympress.ui"

<dl class="class">
<dt id="pympress.ui.UI">
<em class="property">class </em><code class="descclassname">pympress.ui.</code><code class="descname">UI</code><span class="sig-paren">(</span><em>docpath=None</em>, <em>ett=0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pympress/ui.html#UI"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pympress.ui.UI" title="Permalink to this definition"></a></dt>
<em class="property">class </em><code class="descclassname">pympress.ui.</code><code class="descname">UI</code><span class="sig-paren">(</span><em>ett=0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pympress/ui.html#UI"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pympress.ui.UI" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
<p>Pympress GUI management.</p>
<dl class="method">
Expand All @@ -218,7 +218,7 @@ <h3><a class="reference internal" href="#module-pympress.ui" title="pympress.ui"

<dl class="attribute">
<dt id="pympress.ui.UI.builder">
<code class="descname">builder</code><em class="property"> = &lt;Builder object at 0x61a81b0 (GtkBuilder at 0x4fb5c20)&gt;</em><a class="headerlink" href="#pympress.ui.UI.builder" title="Permalink to this definition"></a></dt>
<code class="descname">builder</code><em class="property"> = &lt;Builder object at 0x6395b88 (GtkBuilder at 0x4fe5c20)&gt;</em><a class="headerlink" href="#pympress.ui.UI.builder" title="Permalink to this definition"></a></dt>
<dd><p><code class="xref py py-class docutils literal"><span class="pre">Builder</span></code> to read XML descriptions of GUIs and load them.</p>
</dd></dl>

Expand Down Expand Up @@ -309,7 +309,7 @@ <h3><a class="reference internal" href="#module-pympress.ui" title="pympress.ui"

<dl class="attribute">
<dt id="pympress.ui.UI.doc">
<code class="descname">doc</code><em class="property"> = None</em><a class="headerlink" href="#pympress.ui.UI.doc" title="Permalink to this definition"></a></dt>
<code class="descname">doc</code><em class="property"> = &lt;pympress.document.EmptyDocument object&gt;</em><a class="headerlink" href="#pympress.ui.UI.doc" title="Permalink to this definition"></a></dt>
<dd><p>Current <a class="reference internal" href="#pympress.document.Document" title="pympress.document.Document"><code class="xref py py-class docutils literal"><span class="pre">Document</span></code></a> instance.</p>
</dd></dl>

Expand Down Expand Up @@ -351,7 +351,7 @@ <h3><a class="reference internal" href="#module-pympress.ui" title="pympress.ui"

<dl class="attribute">
<dt id="pympress.ui.UI.entry_ett">
<code class="descname">entry_ett</code><em class="property"> = &lt;Entry object at 0x63e8bd0 (GtkEntry at 0x3d03190)&gt;</em><a class="headerlink" href="#pympress.ui.UI.entry_ett" title="Permalink to this definition"></a></dt>
<code class="descname">entry_ett</code><em class="property"> = &lt;Entry object at 0x63c6990 (GtkEntry at 0x3d3c100)&gt;</em><a class="headerlink" href="#pympress.ui.UI.entry_ett" title="Permalink to this definition"></a></dt>
<dd><p><code class="xref py py-class docutils literal"><span class="pre">Entry</span></code> used to set the estimated talk time.</p>
</dd></dl>

Expand Down Expand Up @@ -2242,7 +2242,7 @@ <h3><a class="reference internal" href="#module-pympress.vlcvideo" title="pympre
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<br />
<a href="index.html" class="icon icon-home"> Docs home</a>
<div class="version">
v1.0.1
v1.0.2
</div>


Expand Down Expand Up @@ -180,7 +180,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'b&#39;0.6-117-gd5f7817&#39;',
VERSION:'b&#39;0.6-120-g2cc4f74&#39;',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pympress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# DON'T IMPORT ANYTHING HERE (OR YOU WILL BREAK setup.py)
#

__version__ = '1.0.1'
__version__ = '1.0.2'
__copyright__= """2009, 2010 Thomas Jost <thomas.jost@gmail.com>
2015-2017 Cimbali <me@cimba.li>
2016 Christoph Rath <christof.rath@iaik.tugraz.at>
Expand Down

0 comments on commit 905cdfc

Please sign in to comment.