Sha256: 41cb73e14557f6a056683887c2aa6eed77ec2d7fcf329fad6bbb5b8c8f2706e4
Contents?: true
Size: 792 Bytes
Versions: 6
Compression:
Stored size: 792 Bytes
Contents
# Original code was written by Cecil Coupe # He shared that in Shoes ML: http://librelist.com/browser//shoes/2011/2/17/radio-checked-method-broken/#1197b650c7dfdae2bc7c76bd9dad7e0e require 'purple_shoes' Shoes.app width: 300, height: 300 do background gold..deeppink, angle: 45 @opt = 'none' r1 = radio do @opt = "First" end para "Radio 1", width: 70 r2 = radio do @opt = "Second" end para "Radio 2", width: 70 r3 = radio do @opt = "Third" end para "Radio 3", width: 70 stack do para "Default is #{@opt}" # Set default for Radio Group :grp r3.checked = true button "Do My Bidding" do @p.text += "Aye, Aye. Using #{@opt}\n" flush end para "Choices follow\n" @p = para end end
Version data entries
6 entries across 6 versions & 1 rubygems