class App(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.start()
self.LBL_ozon = Label(text = parse(), font = "Calibri 100")
def callback(self):
self.root.quit()
def run(self):
self.root = Tk()
self.root.protocol("WM_DELETE_WINDOW", self.callback)
self.root.geometry("1600x900")
self.LBL_ozon.place(x=100,y=100)
self.BTN_confirm_bet = Button(text = "✔", font = "arial 20")
self.BTN_confirm_bet.place(x=400,y=300)
self.ENT_bet = Entry()
self.ENT_bet.place(x=130,y=300)
self.root.mainloop()
class App(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.start()
def callback(self):
self.root.quit()
def run(self):
self.root = Tk()
self.root.protocol("WM_DELETE_WINDOW", self.callback)
self.root.geometry("1600x900")
self.LBL_ozon = Label(text = parse(), font = "Calibri 100")
self.LBL_ozon.place(x=100,y=100)
self.BTN_confirm_bet = Button(text = "✔", font = "arial 20")
self.BTN_confirm_bet.place(x=400,y=300)
self.ENT_bet = Entry()
self.ENT_bet.place(x=130,y=300)
self.root.mainloop()
app = App()
def refresh_LBL_ozon():
while True:
app.LBL_ozon.config(text = parse())
refreshthread = threading.Thread(target = refresh_LBL_ozon)
refreshthread.start()
def upgradetime():
global clicks
global time
global timeprice
if clicks <= timeprice:
pass
if clicks >= timeprice:
time = round(time / 1.7)
clicks = clicks - timeprice
timeprice = round(timeprice * 1.9)
totalclicks.config(text=clicks)
#ДОБАВИТЬ LABLE
labeluptime.config(text="Чтобы добиться\n след. улучшения\n вам понадобиться\n" + str(timeprice) + " монеток")