File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,10 @@ def scroll(self):
361
361
return
362
362
363
363
self ._text [self ._scrolling_index ].x = self ._text [self ._scrolling_index ].x - 1
364
- line_width = self ._text [self ._scrolling_index ].bounding_box [2 ] * self ._text_scale [self ._scrolling_index ]
364
+ line_width = (
365
+ self ._text [self ._scrolling_index ].bounding_box [2 ]
366
+ * self ._text_scale [self ._scrolling_index ]
367
+ )
365
368
if self ._text [self ._scrolling_index ].x < - line_width :
366
369
# Find the next line
367
370
self ._scrolling_index = self ._get_next_scrollable_text_index ()
@@ -376,7 +379,10 @@ def scroll_text(self, frame_delay=0.02):
376
379
return
377
380
if self ._text [self ._scrolling_index ] is not None :
378
381
self ._text [self ._scrolling_index ].x = self .graphics .display .width
379
- line_width = self ._text [self ._scrolling_index ].bounding_box [2 ] * self ._text_scale [self ._scrolling_index ]
382
+ line_width = (
383
+ self ._text [self ._scrolling_index ].bounding_box [2 ]
384
+ * self ._text_scale [self ._scrolling_index ]
385
+ )
380
386
for _ in range (self .graphics .display .width + line_width + 1 ):
381
387
self .scroll ()
382
388
sleep (frame_delay )
You can’t perform that action at this time.
0 commit comments