DEV Community

Cover image for Glimmer DSL for LibUI Basic Child Window
Andy Maleh
Andy Maleh

Posted on

2 2

Glimmer DSL for LibUI Basic Child Window

Glimmer DSL for LibUI v0.5.14 has been released with the following changes:

  • Basic Child Window example: a sample demonstrating how to spawn a child window from the main window
  • Modify default window closing behavior to autodetect if the window is a child window (not the main window), and if closed, ensure that does not quit the app.
  • Accept true and false as return values for on_closing window listener as aliases to 1 and 0

Basic Child Window Code

# From: https://github.com/AndyObtiva/glimmer-dsl-libui#basic-child-window

require 'glimmer-dsl-libui'

include Glimmer

window('Main Window') {
  button('Spawn Child Window') {
    on_clicked do
      window('Child Window') {
        on_closing do
          puts 'Child window is closing'
        end
      }.show
    end
  }

  on_closing do
    puts 'Main window is closing'
  end
}.show
Enter fullscreen mode Exit fullscreen mode

Basic Child Window Screenshots

screenshot1

screenshot2

Happy Glimmering!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More