Ben Chuanlong Du's Blog

It is never too late to learn.

The Entry Widget in Tkinter

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. ttk.Entry is preferred over tk.Entry.

  2. ttk.Entry/tk.Entry does not have a set method to set the text directly. Instead, you have to first delete the text and then insert text into it.

    entry.delete(0, tk.END)
    entry.insert(0, text)
    

Comments