make pixelbuf iterable

This commit is contained in:
Roy Hooper 2019-11-25 20:21:00 -05:00
parent d4ed258b74
commit 0ef9344c17

View File

@ -454,6 +454,7 @@ const mp_obj_type_t pixelbuf_pixelbuf_type = {
.subscr = pixelbuf_pixelbuf_subscr,
.make_new = pixelbuf_pixelbuf_make_new,
.unary_op = pixelbuf_pixelbuf_unary_op,
.getiter = mp_obj_new_generic_iterator,
.print = NULL,
.locals_dict = (mp_obj_t)&pixelbuf_pixelbuf_locals_dict,
};