mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-16 15:13:00 +00:00
Update stock_news_manager.py
added gap before headline 1 in stock_news_manager to reinforce the scroll effect
This commit is contained in:
@@ -210,6 +210,9 @@ class StockNewsManager:
|
|||||||
current_x = 0
|
current_x = 0
|
||||||
screen_width_gap = width # Use a full screen width as the gap
|
screen_width_gap = width # Use a full screen width as the gap
|
||||||
|
|
||||||
|
# Add initial gap before the first headline
|
||||||
|
current_x += screen_width_gap
|
||||||
|
|
||||||
actual_total_width = 0
|
actual_total_width = 0
|
||||||
for news in all_news:
|
for news in all_news:
|
||||||
news_text = f"{news['symbol']}: {news['title']} "
|
news_text = f"{news['symbol']}: {news['title']} "
|
||||||
|
|||||||
Reference in New Issue
Block a user