Hiii. I coundn't get the texts which is being entered in the entry variable by using this method. Using get method i always get 0 as the entered value. i tried partial, lambda functions too! But still coundn't get the entry values. someone please help me to solve this out!
from tkinter import *
a = Tk()
def reg():
global b
b = Tk()
global ab
ab = IntVar()
E = Entry(b,textvariable=ab).pack()
b2 = Button(b, text='submit',command=sub).pack()
def sub():
l = ab.get()
Lab = Label(b, text=l).pack()
b1 = Button(a, text='reg',command=lambda:reg()).pack()