Freewind Freewind - 8 months ago 86
Python Question

Does tkinter have a table widget?

I'm learning python, and I want to use it to create a simple GUI application. Since Tkinter is built-in, and it's very simple, I want to use it.

My application will have a table to display some data loaded from database. I searched but not found any "table" examples built by Tkinter.

Does it have "table" component? If not, what should I use?

Answer Source

Tkinter doesn't have a built-in table widget. The closest you can use is a Listbox or a Treeview of the tkinter's sub package ttk.

However, you can use tktable, which is a wrapper around the Tcl/Tk TkTable widget, written by Guilherme Polo.