DEV Community

vindarel
vindarel

Posted on

3

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

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more