Update stockTicker.py
This commit is contained in:
@@ -7023,6 +7023,10 @@ class StockTicker():
|
|||||||
midFrame = self.textToImageProf(ticker, current, change, arrow, font=ImageFont.load("./fonts/6x10.pil")) #IMAGE THE TEXT
|
midFrame = self.textToImageProf(ticker, current, change, arrow, font=ImageFont.load("./fonts/6x10.pil")) #IMAGE THE TEXT
|
||||||
if sector_settings['logos']:
|
if sector_settings['logos']:
|
||||||
try:
|
try:
|
||||||
|
try: #load the tiny logo
|
||||||
|
logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'tiny_sector')
|
||||||
|
logo = Image.open(os.path.join(logos_path, category + '.png'))
|
||||||
|
except: # load the big logo and scale it
|
||||||
logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'sector')
|
logos_path = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos'), 'sector')
|
||||||
logo = Image.open(os.path.join(logos_path, category + '.png'))
|
logo = Image.open(os.path.join(logos_path, category + '.png'))
|
||||||
# half the size of the logo
|
# half the size of the logo
|
||||||
|
Reference in New Issue
Block a user