Skip to content

Commit

Permalink
Remove programImagePlacer
Browse files Browse the repository at this point in the history
  • Loading branch information
JerBouma committed Jan 2, 2020
1 parent 298fc47 commit 85e06ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
8 changes: 0 additions & 8 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 85e06ab

Please sign in to comment.