I solved the problem I asked for in Put a Label in a function-generated window from another function
Now, I have another problem on the same script.
def window1():
windowone=Tk()
button1=button(windowone, command=window2)
def put():
labeltoput=label(windowtwo, text"text to put")
def window2():
windowtwo=Tk()
putlabel=button(windowtwo, text="put label on windowone", command=put)
Now, when I click on the Button putlabel
, I want that the label in the function put
goes in the windowtwo
, instead of appearing in the windowone
.
They're all global variables.