Skip to content

Commit 99cb770

Browse files
committed
adding comment for create label function
1 parent 6d825bf commit 99cb770

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_slideshow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ def _fade_down(self):
338338
time.sleep(0.01)
339339

340340
def _create_label(self, file):
341+
"""Creates and returns a label from a file object that contains
342+
valid valid json describing the text to use.
343+
See: examples/sample_text_slide.json
344+
"""
341345
json_data = json.loads(file.read())
342346
_scale = 1
343347
if "scale" in json_data:

0 commit comments

Comments
 (0)