From: ttate@... Date: 1998-06-30T10:40:10+09:00 Subject: [ruby-dev:3105] Re: experimental release 1.1b9_28 立石@JAISTです。 maebashi@iij.ad.jpさん(06月30日10時): maebashi>>ところで、かわりに TkAfter を使ってみようと思ったのですが、引数の数が多 maebashi>>くて使い方が良くわかりませんでした。 maebashi>> maebashi>> def go maebashi>> game.nextgen maebashi>> update maebashi>> if @goflag maebashi>> after 0, proc {go} maebashi>> end maebashi>> end maebashi>> maebashi>>というのを TkAfter で書くとどうなるのでしょうか。 ruby/tkデモのtimerを参考にしてやって下さい。 一応Thread,after,TkAfterの3種類を用意して あります。 URL: http://www.pluto.dti.ne.jp/~tateishi/ftp/ruby-tk-demo/timer ---------------------------------------------- Name Takaaki Tateishi E-Mail ttate@jaist.ac.jp URL http://www.pluto.dti.ne.jp/~tateishi/ Org School of Information Science Japan Advanced Institute of Science and Technology (JAIST)