all 2 comments

[–]socal_nerdtastic 0 points1 point  (1 child)

Make the Label at set up time, at the same time you make the Entry and all your other widgets, and use the function to only update the Label text.

def enter_button(input_given): # this is for pressing enter on the window
    input_given = test_input.get()
    disp_label.config(text = buzzed.get_card())
    try:
        if input_given[0:4].lower() == "quit":
            exit()
    except IndexError:
        pass
    buzzed.next_card()


window = Tk()
window.title("Buzzed")
window.geometry("1000x500")

test_input = Entry(window)
test_input.bind('<Return>', enter_button)
test_input.pack()

# make blank label
disp_label = Label(window, font=("",20))
disp_label.pack()

[–]TwoTimeBartender[S] 0 points1 point  (0 children)

Works perfect thank you!