Added simple read_updates example. Fixed display_frames for pydocstyle
This commit is contained in:
@@ -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)):
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user