Return image data fram get_image()
This commit is contained in:
parent
56b1f3c6e4
commit
eb968ec16f
@ -27,8 +27,8 @@ class display(object):
|
||||
|
||||
def get_image(self):
|
||||
self.img.save("/tmp/wr/frame%d.png" % self.dbg)
|
||||
self.img.tobytes()
|
||||
self.dbg += 1
|
||||
return self.img.tobytes()
|
||||
|
||||
class display_playback(display):
|
||||
def __init__(self):
|
||||
@ -112,9 +112,9 @@ class display_manager(object):
|
||||
|
||||
def get_image(self):
|
||||
if (self.current_display):
|
||||
self.current_display.get_image()
|
||||
return self.current_display.get_image()
|
||||
else:
|
||||
print("TODO: return empty image")
|
||||
return []
|
||||
|
||||
def animate(self, ticks):
|
||||
old_tick = self.tick
|
||||
|
Loading…
Reference in New Issue
Block a user