From 252ee8b6093c8eb78dabf09103a9ea61a73452ca Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 31 Mar 2023 17:14:40 +0800 Subject: [PATCH] Update stockTicker.py --- stockTicker.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 6e31fad..d268f42 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -1933,7 +1933,7 @@ class StockTicker(): preprice_img = self.textImage(preprice, font, r = 200, g = 200 , b = 200) prechange_img = self.textImage(prechange, font, r = 200, g = 200, b = 200) prepercent_img = self.textImage('('+prepercent + '%' + ')', font, r=200, g=200, b=200) - arrow = Image.open('logos/up-tiny.png') + arrow = Image.open('logos/up-tiny2.png') else: preprice_img = self.textImage(preprice, font, r = 0, g = 255 , b = 0) prechange_img = self.textImage(prechange, font, r = 0, g = 255, b = 0) @@ -1967,7 +1967,7 @@ class StockTicker(): postprice_img = self.textImage(postprice, font, r = 200, g = 200 , b = 200) postchange_img = self.textImage(postchange, font, r = 200, g = 200, b = 200) postpercent_img = self.textImage('('+postpercent + '%' + ')', font, r=200, g=200, b=200) - arrow = Image.open('logos/up-tiny.png') + arrow = Image.open('logos/up-tiny2.png') else: postprice_img = self.textImage(postprice, font, r =0, g = 255 , b = 0) postchange_img = self.textImage(postchange, font, r = 0, g = 255, b = 0) @@ -2196,6 +2196,11 @@ class StockTicker(): prechange_img = self.textImage(prechange, font, r = 255, g = 0, b = 0) prepercent_img = self.textImage('('+prepercent + '%' + ')', font, r=255, g=0, b=0) arrow = Image.open('logos/down-tiny.png') + elif prepost_settings[symbol]['Pre-market']['prechange'] == '0.00': + preprice_img = self.textImage(preprice, font, r = 200, g = 200 , b = 200) + prechange_img = self.textImage(prechange, font, r = 200, g = 200, b = 200) + prepercent_img = self.textImage('('+prepercent + '%' + ')', font, r=200, g=200, b=200) + arrow = Image.open('logos/up-tiny2.png') else: preprice_img = self.textImage(preprice, font, r = 0, g = 255 , b = 0) prechange_img = self.textImage(prechange, font, r = 0, g = 255, b = 0) @@ -2224,6 +2229,11 @@ class StockTicker(): postchange_img = self.textImage(postchange, font, r = 255, g = 0, b = 0) postpercent_img = self.textImage('('+postpercent +'%'+')', font, r=255, g=0, b=0) arrow = Image.open('logos/down-tiny.png') + elif prepost_settings[symbol]['Post-market']['postchange'] == '0.00': + postprice_img = self.textImage(postprice, font, r = 200, g = 200, b = 200) + postchange_img = self.textImage(postchange, font, r = 200, g = 200, b = 200) + postpercent_img = self.textImage('('+postpercent +'%'+')', font, r=200, g=200, b=200) + arrow = Image.open('logos/up-tiny2.png') else: postprice_img = self.textImage(postprice, font, r =0, g = 255 , b = 0) postchange_img = self.textImage(postchange, font, r = 0, g = 255, b = 0)