From 54ec1c4fe81672ca66f327ef6ae170f458cd79e5 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 15 Aug 2007 20:57:30 +0000 Subject: sorry. I made wrong tags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_54@13009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb | 54 ----------------------------- 1 file changed, 54 deletions(-) delete mode 100644 ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb (limited to 'ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb') diff --git a/ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb b/ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb deleted file mode 100644 index caa50f92e7..0000000000 --- a/ruby_1_8_5/ext/tk/sample/tcltklib/lines3.rb +++ /dev/null @@ -1,54 +0,0 @@ -#! /usr/local/bin/ruby - -require "tk" - -def drawlines() - print Time.now, "\n" - - for j in 0 .. 99 - print "*" - $stdout.flush - if (j & 1) != 0 - col = "blue" - else - col = "red" - end - for i in 0 .. 99 -# $a.create(TkcLine, i, 0, 0, 500 - i, "fill"=>col) - end - end - - print Time.now, "\n" - - for j in 0 .. 99 - print "*" - $stdout.flush - if (j & 1) != 0 - col = "blue" - else - col = "red" - end - for i in 0 .. 99 - $a.create(TkcLine, i, 0, 0, 500 - i, "fill"=>col) - end - end - - print Time.now, "\n" -# Tk.root.destroy -end - -$a = TkCanvas.new{ - height(500) - width(500) -} - -$b = TkButton.new{ - text("draw") - command(proc{drawlines()}) -} - -TkPack.configure($a, $b, {"side"=>"left"}) - -Tk.mainloop - -# eof -- cgit v1.2.3