The kind of functions are of the sort of:
(defun display-all () "Display all items in the database." (dolist (item database) (format t "~{~a:~10t~a~%~}~%" item)))
(defun prompt-read (prompt) (format query-io "~a: " prompt) (force-output query-io) (read-line query-io))
(defun prompt-for-item () (make-database (prompt-read "Name") (prompt-read "Price")))
I've read the Ltk documentation, but there doesn't seem to be any examples of text widget usage.