hello daniweb community;
The first window my application shows is this one:
def init(win):
win.title("Ausgangsposition")
win.minsize(800, 600)
getcurrentrateandcurrentbalance()
btn.pack()
Usage of win:
win = Tk()
win = Toplevel()
methode getcurrentrateandcurrentbalance()
def getcurrentrateandcurrentbalance():
threading.Timer(5.0, getcurrentrateandcurrentbalance).start()
print "Hello, World!" + result
lab=Label(win, text="Aktueller Kurs: " + res +" Euro/BTC", bg='#40E0D0', fg='#FF0000')
lab2=Label(win,text="Aktuell verf\xfcgbare Coins: " + avbtcs +" BTCs", bg='#40E0D0', fg='#FF0000')
lab.place(x=20, y=30)
lab2.place(x=20, y=70)
After closing window "win" with this methode:
def hello():
t = Toplevel(win)
t.title("Schritt 2")
t.configure(background='#40E0D0')
win.destroy()
"win" is closed but cmd shows error logs every 5 seconds because of the label in "getcurrentrateandcurrentbalance()".
Any idea how to fix this? The methode seems to be called again although "win" is closed.
Kind regards;