Sha256: 43fa6abced353037f430bf05a9d05c7501566097a36d1239563f940072a52580
Contents?: true
Size: 798 Bytes
Versions: 20
Compression:
Stored size: 798 Bytes
Contents
#!/usr/bin/env ruby begin require 'wx' rescue LoadError => no_wx_err begin require 'rubygems' require 'wx' rescue LoadError raise no_wx_err end end module Demo def Demo.run(frame, nb, log) lst = %w(apple pear banana coconut orange etc etc.. etc...) choices = Wx::get_multiple_choices("Pick some from\n this list\nblah blah...", "m.s.d.", lst) if choices log.write_text("You selected " + choices.length().to_s() + " items:") choices.each_index {|i| log.write_text("\t" + choices[i].to_s() + " => " + lst[choices[i]])} end end def Demo.overview return "" end end if __FILE__ == $0 run_solo_lib = File.join( File.dirname(__FILE__), 'run.rb') load run_solo_lib run File.basename($0) end
Version data entries
20 entries across 20 versions & 1 rubygems