Professional Documents
Culture Documents
def show_text():
print(input_box.get())
subtitle.config(text=input_box.get())
def tored ():
subtitle.config(fg="red")
def toblue ():
subtitle.config(fg="blue")
main_window = tk.Tk()
main_window.geometry("300x600")
# Create a frame to hold the entry widget and the "Place Text" button
frame = tk.Frame(main_window)
frame.pack(pady=20)
place_text.pack()
Red.pack()
Blue.pack()
main_window.mainloop()