Added simple read_updates example. Fixed display_frames for pydocstyle

This commit is contained in:
simleek
2020-04-07 22:34:11 -07:00
parent e14ae5f45e
commit 412a9e4569
2 changed files with 7 additions and 0 deletions
@@ -118,6 +118,7 @@ class SubscriberWindows(object):
window_commands.mouse_pub.publish(mousey)
def display_frames(self, frames, win_num=0, ids=None):
"""Display a list of frames on multiple windows."""
if isinstance(frames, Exception):
raise frames
for f in range(len(frames)):
+6
View File
@@ -0,0 +1,6 @@
from displayarray import read_updates
for f in read_updates(0, size=(1, 1)):
if f:
print(f[0].shape)
break