Skip to content

Commit 770a6cc

Browse files
authored
Merge pull request #53 from slootsky/feature/return_id_of_textbox
return index of textbox
2 parents d465948 + 7c235ae commit 770a6cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_matrixportal/matrixportal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def add_text(
201201

202202
if scrolling and self._scrolling_index is None: # Not initialized yet
203203
self._scrolling_index = self._get_next_scrollable_text_index()
204+
return len(self._text) - 1
204205

205206
# pylint: enable=too-many-arguments
206207

0 commit comments

Comments
 (0)