AlanHorman AlanHorman - 3 months ago 19
Python Question

Creating a text entry in excel style

Is there a possibility to create in a tkinter window a text entry in cells and rows just like in excel?

I want to create an application which imports the values from a database table and store them into a excel-like table.

Edit: Cells in the table should be changeable directly.


There's a module named TkTable for doing this. it will give you the full table support.

import tkinter as tk
import tktable

root = tk.Tk()
table = tktable.Table(root, rows=10, cols=4)
table.pack(side="top", fill="both", expand=True)