Sha256: cf04f735f1d1a8d8f6f70510e623b0dbf3dccd4545b76b23fb46cd742576e889
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true require "glimmer-dsl-libui" class Scarpe # Scarpe::GlimmerLibUIApp must only be used from the main thread, due to GTK+ limitations. class GlimmerLibUIApp < GlimmerLibUIWidget include Glimmer attr_reader :debug attr_writer :shoes_linkable_id def initialize(properties) super bind_shoes_event(event_name: "run") do code = @document_root.display(properties) puts code # This is for if I want to confirm textual output. But not actually fire up the service. exit if ENV["NO_RUN"] eval code end end attr_writer :document_root end end
Version data entries
6 entries across 6 versions & 2 rubygems