mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +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
|
||||
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
|
||||
for news in all_news:
|
||||
news_text = f"{news['symbol']}: {news['title']} "
|
||||
|
||||
Reference in New Issue
Block a user