If I make an entry box on a window, then change the coordinates, the box stays put like I want. Now is there a way to set new text in that box after the coordinate change? I can't figure it out for my code
Jump to Post
I do not understand what you mean:
import Tkinter as tk def entry_down(event): frame.forget() frame.pack() entry.forget() entry.pack() entry.bind('<Return>', entry_up) print('Value: %s, from top to down' % entry.get()) def entry_up(event): frame.forget() frame.pack(side=tk.TOP) entry.bind('<Return>', entry_down) print('Value: %s, from down to top' % entry.get()) root = tk.Tk() frame = tk.Frame(root, …
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.