Create nice-looking GUI applications in Common Lisp
vindarel

vindarel @vindarel

About: Full-stack, Python, Common Lisp in production. Building a video course to learn Lisp efficiently.

Location:
France
Joined:
Oct 14, 2022

Create nice-looking GUI applications in Common Lisp

Publish Date: May 27 '23
3 1

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

Comments 1 total

  • vindarel
    vindarelMar 5, 2024

    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".

Add comment