From: Regis d'Aubarede Date: 2012-07-24T17:16:53+09:00 Subject: Re: Need a simple graphics interface/function for ruby here a example with gtk by a littlr dsl > ... install gtk2 > gem install Ruiby and then : require 'ruiby' M=12 N=10 Ruiby.app width: 400, height:400 do @matrix=[] table(M,N) do M.times { line=[] row { N.times { line << label(" ") cell(line.last) } } @matrix << line } end anim(10) do @matrix[rand(M)][rand(N)].text = (Time.now.to_i%10).to_s end end -- Posted via http://www.ruby-forum.com/.