Am 12.12.17 um 23:15 schrieb Rob Sciuk:
There are several possibilities to display table-like data, with
different tradeoffs.
TkTable does still compile and can be used, it is reasonable fast, but
it is more like a spreadsheet. Very good choice if you want to display
data like Excel. In TkTable, you can select individual cells or columns.
tksqlite uses it to display SQLite tables and query results.
ttk::treeview is more a multicolumn listbox / tree widget. You can't
select individual cells or a column, but you can select rows. I've also
used it, but found it to be much inferior (functionwise) to the next option:
tablelist. Tablelist is a pure Tcl package based on the text widget and
provides very nice tree and multicolumn listbox functionality. For huge
datasets it can become sluggish. Otherwise, you probably can do almost
everything with the right settings. It's actively maintained by Csaba
Nemethi who publishes new releases regularly. It's my go-to widget for
this kind of data.
Finally, TkTreeCtrl. This seems to be th emost powerful of all, it's
compiled (therefore fast), has a huge range of features (check out the
demos), but the configuration is not as intuitive as tablelist or the
others.
Concerning Tkinter: Sadly, of all those ttk::treeview (the one I'd not
recommend) is the only one included in the core, and therefore in
standard Tkinter. There is a number of Tk extensions which I think are
indispensable, and could be in the core as well - that's TkDND,
tabelelist, Img, ctext, maybe more. For Python, you'll have to hunt down
a wrapper or roll your own.
Christian
PS: Have you checked out TkSqlite, because you say you wanted to write a
database manager? Precompiled binaries are available from kbskit:
https://sourceforge.net/projects/kbskit/files/kbs/0.4.9/