How to create a multiline entry with tkinter? How to create a multiline entry with tkinter? python python

How to create a multiline entry with tkinter?


You could use the Text widget:

from tkinter import *root = Tk()text = Text(root)text.pack()root.mainloop()

Or with scrolling bars using ScrolledText:

from tkinter import *from tkinter.scrolledtext import ScrolledTextroot = Tk()ScrolledText(root).pack()root.mainloop()


Just use Text() widget.

For example:

import tkinter as tkroot = tk.Tk()text = tk.Text(root)text.pack()root.mainloop()

Output:

Output