Sha256: 40cd20015c2a528790c1365fc93e69ad47dc97aece393dd92ffd54995dab44ca
Contents?: true
Size: 797 Bytes
Versions: 11
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true # NOTE: # This example displays images that can be freely downloaded from the Studio Ghibli website. require 'glimmer-dsl-libui' include Glimmer IMAGE_ROWS = [] 5.times do |i| url = format('https://www.ghibli.jp/gallery/thumb-redturtle%03d.png', (i + 1)) puts "Processing Image: #{url}"; $stdout.flush # for Windows text = url.sub('https://www.ghibli.jp/gallery/thumb-redturtle', '').sub('.png', '') img = image(url) IMAGE_ROWS << [[img, text], [img, text]] # cell values are dual-element arrays rescue StandardError => e warn url, e.message end window('The Red Turtle', 670, 350) { table { image_text_column('image/number') image_text_column('image/number (editable)') { editable true } cell_rows IMAGE_ROWS } }.show
Version data entries
11 entries across 11 versions & 1 rubygems