Tkinter Wiki   TkTable UserPreferences
 
HelpContents FindPage Diffs Info Edit Subscribe XML Print View

1. TkTable - a table (spreadsheet) Widget for Tk

TkTable is a full-featured 2D table widget for Tk. It supports images, embedded windows, varying colors and fonts, and more.

Example

  1 
  2 
  3 
  4 
  5 
  6 
  7 
  8 

import tktable

table = tktable.Table(parent,
    rows = 5,
    cols = 5
    )
table.pack()

Screenshot:

tktable.png

The tktable.py file, a python wrapper for the Tcl/Tk TkTable widget, is in the demo directory of the source code for TkTable, available at http://tktable.sf.net. As it says in its headers, it is an example implementation only. I believe there are other tkTable Python modules available. The file tktable.py file can be run to test the TkTable installation.

PythonPowered