The PmwContribD Table is a widget for displaying tabular data.
1 self.table = Table(self.interior(), cellpadding=pad, xfreeze=1)
2 self.table.addcolumn( RowLabelColumn(
3 title='',
4 datasource=TestDataSource(),
5 width=50,
6 rowheight=rowheight,
7 cellalignment='se',
8 cellpadding=pad,
9 ))
10 for i in range(10):
11 self.table.addcolumn( Column(
12 title='Col %d' % i,
13 datasource=TestDataSource(base=10**i),
14 #width=50 + (10 * i),
15 width=0,
16 rowheight=rowheight,
17 cellalignment='se',
18 cellpadding=pad,
19 ) )
20 self.table.pack(fill=Tkinter.BOTH, expand=Tkinter.YES)
21
Screenshot: