Tkinter widgets for desktop database application

Terry Reedy tjreedy at udel.edu
Wed Jul 14 06:20:36 EDT 2021


On 7/13/2021 4:24 PM, Rich Shepard wrote:
> I'm writing a couple of database applications that use tkinter, and not a
> web browser, for the UI and I'm still trying to determine the optimal 
> way to
> do this.
> 
> Individual tk and ttk widgets (LineEntry, Combobox, etc.) work for adding

Do you mean Entry?

> and modifying individual database table rows but not for displaying 
> multiple
> rows returned by a SELECT statement. To view all rows returned by the SQL
> statement would a pythonReport be used?

ttk.Treeview can be used for read-only hierarchical and table data. 
Search 'python ttk Treeview' and Images for examples.


> I'm working on learning to use tksheet as the sole widget because it can
> display multiple rows from a database table as well as add new rows and
> modify existing ones (one or more columns in each row).

I have not used it but have read some of manual and it seems suitable 
for editing flat table.


-- 
Terry Jan Reedy



More information about the Python-list mailing list