Fixed documentation.

This commit is contained in:
simleek
2020-04-07 22:19:06 -07:00
parent 3a440a30d4
commit f4526a513d
4 changed files with 8 additions and 12 deletions

View File

@ -132,14 +132,14 @@ class FrameUpdater(threading.Thread):
""" """
Read back all updates from the requested videos. Read back all updates from the requested videos.
Example usage: Examp#le usage:
.. code-block:: python .. co#de-block:: python
>>> from examples.videos import test_video >>#> from examples.videos import test_video
>>> f = 0 >>#> f = 0
>>> for f, r in enumerate(read_updates(test_video, end_callback=lambda :f==2)): >>#> for f, r in enumerate(read_updates(test_video, end_callback=lambda :f==2)):
... print(f"Frame:{f}. Array:{r}") ..#. print(f"Frame:{f}. Array:{r}")
""" """
from displayarray.window import SubscriberWindows from displayarray.window import SubscriberWindows

View File

@ -349,4 +349,5 @@ def breakpoint_display(*args, **kwargs):
def read_updates(*args, **kwargs): def read_updates(*args, **kwargs):
"""Read back all frame updates and yield a list of frames. List is empty if no frames were read."""
return display(*args, **kwargs, silent=True) return display(*args, **kwargs, silent=True)

View File

@ -4,6 +4,7 @@ displayarray.display
.. autofunction:: display .. autofunction:: display
.. autofunction:: breakpoint_display .. autofunction:: breakpoint_display
.. autofunction:: read_updates
Windows Windows
------- -------

View File

@ -1,12 +1,6 @@
displayarray.frame displayarray.frame
=================================== ===================================
Read Updates
------------
.. currentmodule:: displayarray
.. autofunction:: read_updates
Frame Passing Frame Passing
------------- -------------
.. currentmodule:: displayarray.frame .. currentmodule:: displayarray.frame