0

I added an entry wizard with label. How can I add another entry wizard if the value of the previous entry wizard satisfies the condition?

Here is my code

def JoinHouses():
    Label(root, text="Input the feature to join").grid(row=1)
    e1 = Entry(root)
    e1.grid(row=1, column=1)
    Button(root, text="submit", command=house(e1.get())).grid(row=2)

def house(a):
    HouseEntry = []   
    if a == "house":
        for i in range(3,7):
            HouseEntry.append(Label(root, text="Input the remarks to join").grid(row=i))
            e2 = Entry(root)
            e2.grid(row=i, column=1)
SpencerPark
  • 3,298
  • 1
  • 15
  • 27

0 Answers0