update docs

This commit is contained in:
Casper da Costa-Luis 2019-11-08 23:41:19 +00:00
parent 464165c3cb
commit 1599ada42d
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
4 changed files with 26 additions and 2 deletions

View File

@ -1,4 +1,7 @@
from __future__ import print_function
from os import path
import sys
sys.path = [path.dirname(path.dirname(__file__))] + sys.path # NOQA
import tqdm
import tqdm.cli
from textwrap import dedent

View File

@ -406,6 +406,9 @@ Parameters
If (default: None) and ``file`` is unspecified,
bytes will be written in Python 2. If ``True`` will also write
bytes. In all other cases will default to unicode.
* lock_args : tuple, optional
Passed to ``refresh`` for intermediate output
(initialisation, iterating, and updating).
Extra CLI Options
~~~~~~~~~~~~~~~~~
@ -460,7 +463,18 @@ Returns
"""Clear current bar display."""
def refresh(self):
"""Force refresh the display of this bar."""
"""
Force refresh the display of this bar.
Parameters
----------
nolock : bool, optional
If ``True``, does not lock.
If [default: ``False``]: calls ``acquire()`` on internal lock.
lock_args : tuple, optional
Passed to internal lock's ``acquire()``.
If specified, will only ``display()`` if ``acquire()`` returns ``True``.
"""
def unpause(self):
"""Restart tqdm timer from last print time."""

View File

@ -874,7 +874,7 @@ class tqdm(Comparable):
bytes. In all other cases will default to unicode.
lock_args : tuple, optional
Passed to `refresh` for intermediate output
(iterating/updating).
(initialisation, iterating, and updating).
gui : bool, optional
WARNING: internal parameter - do not use.
Use tqdm.gui.tqdm(...) instead. If set, will attempt to use

View File

@ -209,6 +209,13 @@ In all other cases will default to unicode.
.RS
.RE
.TP
.B \-\-lock_args=\f[I]lock_args\f[]
tuple, optional.
Passed to \f[C]refresh\f[] for intermediate output (initialisation,
iterating, and updating).
.RS
.RE
.TP
.B \-\-delim=\f[I]delim\f[]
chr, optional.
Delimiting character [default: \[aq]\\n\[aq]].