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

Neon image

Serverless Postgres in 300ms (❗️)

10 free databases with autoscaling, scale-to-zero, and read replicas. Start building without infrastructure headaches. No credit card needed.

Try for Free →

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

AWS Industries LIVE! Stream

Watch AWS Industries LIVE!

New tech. Real solutions. See what’s possible on Industries LIVE! with AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay