-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfronte.py
More file actions
45 lines (33 loc) · 1009 Bytes
/
fronte.py
File metadata and controls
45 lines (33 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import tkinter as tk
import test
from tkinter import *
from PIL import Image, ImageTk
SN = ""
Key = ""
image = ""
master = tk.Tk()
master.geometry("1500x1000")
def show_entry_fields():
print("Stonk Name: %s" % (e1.get()))
SN = e1.get()
Key = "OAPX1MWCR5GSEPXK"
flag = test.st(SN, Key)
if flag == "rise":
image = "up.jpg"
if flag == "fall":
image = "down.jpg"
load = Image.open(image)
#load = load.resize(174, 290)
render = ImageTk.PhotoImage(load)
img = Label(master, image=render)
img.image = render
img.place(x=10, y=100)
tk.Label(master, text="Stonk Name").grid(row=0)
#tk.Label(master, text="Alphavantage Key").grid(row=1)
e1 = tk.Entry(master)
#e2 = tk.Entry(master)
e1.grid(row=0, column=1)
#e2.grid(row=1, column=1)
tk.Button(master, text='Quit', command=master.quit).grid(row=3, column=0, sticky=tk.W, pady=4)
tk.Button(master, text='Show', command=show_entry_fields).grid(row=3, column=1, sticky=tk.W, pady=4)
tk.mainloop()