how do i get the return value A to C? I am not using class by the way.
def button:
mylabel = Label(myGui, text = \"hi\").grid(row = 0, column = 0)
A
it's easy just declare A a global.
def button:
global A
mylabel = Label(myGui, text = "hi").grid(row = 0, column = 0)
A = B.get()
return A
B = StringVar()`
C = ""
myentry = Entry(myGui, textvariable = B).grid(row = 1, column = 0)
Submit = Button(myGui, text = "Submit", command = button).grid(row = 1, column = 1)
# and then A is not empty
B= A