From 85e06ab4c6b35a3e17ff0a42223392e4cf664699 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Thu, 2 Jan 2020 18:10:36 +0100 Subject: [PATCH] Remove programImagePlacer --- program.py | 3 ++- utils.py | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/program.py b/program.py index 4031158..a598a15 100644 --- a/program.py +++ b/program.py @@ -27,7 +27,7 @@ def onClick(event): self.master.title("The Passive Investor") self.pack(fill=BOTH, expand=1) - image = programImagePlacer() + image = ImageTk.PhotoImage(Image.open("images/ThePassiveInvestorPNG.png")) panel = Label(self, image = image, bg=background) panel.image = image panel.grid(row=1,column=1, columnspan=2,sticky=W+E+N+S) @@ -78,5 +78,6 @@ def runProgram(self): app = Window(root) app.configure(background=background) root.geometry('725x200') +root.iconbitmap("images/iconICO.ico") root.resizable(False, False) root.mainloop() \ No newline at end of file diff --git a/utils.py b/utils.py index d62fde8..ef1adf0 100644 --- a/utils.py +++ b/utils.py @@ -86,14 +86,6 @@ def graphPlacer(ticker,stockSheet,stockData, sheet.add_chart(chart, 'E4') -programImage = 'https://raw.githubusercontent.com/JerBouma/ThePassiveInvestor/master/Images/ThePassiveInvestorPNG.png' - -def programImagePlacer(url = programImage): - response = requests.get(url) - image = Image.open(io.BytesIO(response.content)) - image = ImageTk.PhotoImage(image) - return image - background = '#e8e8e8' buttonColor = '#4a00a0' buttonTextColour = 'white'