summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-05-14 15:15:23 -0700
committerScott Shawcroft <scott@tannewt.org>2019-05-14 15:15:23 -0700
commitb7b55e0c0a0187f4d248d9b52cd972af5d928336 (patch)
tree83b45fc6af58306d1d2fce64233c5761001bcde0 /shared-bindings
parentf3ab820fc2ad648e1d7b9d5ecf4b40c43760c07f (diff)
Make Group iterable via a generic native iterator.
Fixes #1694
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/displayio/Group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c
index bbf7190a3..46f67e3e8 100644
--- a/shared-bindings/displayio/Group.c
+++ b/shared-bindings/displayio/Group.c
@@ -291,5 +291,6 @@ const mp_obj_type_t displayio_group_type = {
.make_new = displayio_group_make_new,
.subscr = group_subscr,
.unary_op = group_unary_op,
+ .getiter = mp_obj_new_generic_iterator,
.locals_dict = (mp_obj_dict_t*)&displayio_group_locals_dict,
};