I don't understand tkinter much either
- you can call it whatever you wan't it just a variable name that stores an instance of
tk.Tk()
.
root
in line 2 is a pointer to the instance oftk.Tk()
created in line 1.
- again a variable with a pointer to the created label. you can call it whatever you like just ideally make it something sensible to what the object its pointing at is.
- when you use
root
its calling methods of thetk.Tk()
instance, label is calling methods on a instance oftk.Label
.
- yes its an instance of
tk.Tk()
and its calling itsmainloop()
which starts the event loop.
- you only have to pass
root
orlabel
to functions that need to use the methods of those instance or use them as a parent to another gui widget etc.
- i think you only ever create one instance of
tk.Tk()
, create as many label as you like and store pointers to them in any variable, list, dictionary etc you like.
- just pass the pointer to the label to the function and then call the methods on it.
- i would say just modify it.
- don't know for sure as i don't do tkinter but id image the first would show if you delete the one you put over the top.
- i don't understand what your asking on this one sorry.