Set the same width to an entry and text tkinter label
问题 I would like to put an entry and a text label one under the other and with the same width. Here is my code : from tkinter import * root = Tk() title = StringVar() title_entry = Entry(root, textvariable=title, width=30) title_entry.pack() content_text = Text(root, width=30) content_text.pack() root.mainloop() But my 2 widgets don't have the same width. Any idea to solve it ? 回答1: The widgets are different sizes probably because they have different default fonts. If they have the same fonts and