[Tkinter-discuss] A hint for a "table"

Fredrik Lundh fredrik at pythonware.com
Thu Jan 10 19:21:03 CET 2008


Elias Alhanatis wrote:

> I am working on a project with "sheet forms" and i would like
> a hint of how to imply them in Tkinter. I have tried it by creating
> a frame with multiple lines ( where each line divides to the  fields
> i want ) , but in the end i  must look after soooo many variables  and
> its very difficult. Is there a way to create a table with simple X,Y
> coords for each of its cells?

why not just a dictionary to map X,Y to cell widgets?

or use a ready-made table widget:

    http://tkinter.unpythonic.net/wiki/TkTable
    http://tkinter.unpythonic.net/wiki/TableListWrapper

</F>



More information about the Tkinter-discuss mailing list