-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.py
27 lines (24 loc) · 854 Bytes
/
display.py
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
from displayTokens import inputAddress
import pickle
import PySimpleGUI as sg
fnt = "Arial 11"
layout = [[sg.Text('Would you like to restore your last session?', font=fnt, justification='center')],
[sg.Sizer(92,0), sg.Button("Yes", pad=(5,10)), sg.Button(" No ", pad=(25,10))],
[sg.Sizer(240,0), sg.Button("Close", pad=(5,12))]]
window = sg.Window("BEP20 Token Tracker", layout, margins=(30,30), icon=r"C:\Users\andre\Downloads\favicon.ico")
while True:
event, values = window.read()
if event == 'Yes':
window.close()
inputAddress()
break
elif event == ' No ':
outfile = open("pPrices.pickle", 'wb')
pickle.dump('', outfile)
outfile.close()
window.close()
inputAddress()
break
elif event == 'Close' or event == sg.WIN_CLOSED:
break
window.close()