Re: Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread ast
"Christian Gollwitzer" a écrit dans le message de news:ntl6in$on5$1...@dont-email.me... Am 12.10.16 um 13:18 schrieb ast: Because the Test() call does never terminate. You have the mainloop inside of your constructor. As long as this loop runs, your program exists. Try it

Re: Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread Christian Gollwitzer
Am 12.10.16 um 13:18 schrieb ast: Hello, here is the small program: from tkinter import * class Test: def __init__(self): root = Tk() label = Label(root, text="this is a test") label.pack() root.mainloop() test=Test() I dont understand why this program works.

Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread ast
Hello, here is the small program: from tkinter import * class Test: def __init__(self): root = Tk() label = Label(root, text="this is a test") label.pack() root.mainloop() test=Test() I dont understand why this program works. After execution of function