mirror of https://github.com/tqdm/tqdm.git
update docs
This commit is contained in:
parent
464165c3cb
commit
1599ada42d
|
@ -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
|
||||
|
|
16
README.rst
16
README.rst
|
@ -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."""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]].
|
||||
|
|
Loading…
Reference in New Issue