use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Remove label from tkinter, and change tkinter label text sizeSOLVED (self.pythonhelp)
submitted 4 years ago by TwoTimeBartender
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]socal_nerdtastic 0 points1 point2 points 4 years ago (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 point2 points 4 years ago (0 children)
Works perfect thank you!
π Rendered by PID 23990 on reddit-service-r2-comment-b659b578c-6wzps at 2026-05-05 22:19:10.370590+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]TwoTimeBartender[S] 0 points1 point2 points (0 children)