DEV Community

vindarel
vindarel

Posted on

Create nice-looking GUI applications in Common Lisp

We can build interfaces looking like this:

The Forest ttk theme for Tcl/Tk

This is the Forest ttk theme. "ttk"? Yes, for Tcl/Tk! A lightweight and cross-platform GUI toolkit (and language). It doesn't have to look outdated!

Install the nodgui library with Quicklisp, clone a theme, load it and use it:

  (with-nodgui ()
    (eval-tcl-file "ttkthemes/ttkthemes/png/yaru/yaru.tcl")
    (use-theme "yaru")
Enter fullscreen mode Exit fullscreen mode

that's all there is to it.

The ttkthemes work: https://ttkthemes.readthedocs.io/en/latest/themes.html (just like with Python's Tkinter).

See more on the Cookbook and on Peter Lane's examples: https://peterlane.netlify.app/ltk-examples/

More screenshots and examples: https://github.com/vindarel/ltk-tests/, such as this toy media player:

A media player GUI in Lisp

Top comments (1)

Collapse
 
vindarel profile image
vindarel

By the way, the yaru theme is now shipped by default in Nodgui, we don't need the eval-tcl-file step, ony "use-theme".