From: Hidetoshi NAGAI Date: 2005-09-16T10:24:05+09:00 Subject: Re: tcl/tk translate From: "gregarican" Subject: Re: tcl/tk translate Date: Fri, 16 Sep 2005 02:51:34 +0900 Message-ID: <1126806543.751060.97660@g14g2000cwa.googlegroups.com> > The start method is present, but I think what's being passed along is > wrong. Note the error message I receive when creating a new TkTimer > object and then using the start method: > > timer=TkTimer.new > timer.start(20, -1, proc{poly_rotate(poly, 5)}) You'll misunderstand about arguments of those methods. Please read my last mail again. From: Hidetoshi NAGAI Subject: Re: tcl/tk translate Date: Thu, 15 Sep 2005 11:31:32 +0900 Message-ID: <20050915.113123.74733442.nagai@ai.kyutech.ac.jp> > TkTimer.start is TkTimer.new + TkTimer#start. > So, instead of TkTimer.start, you can write: > > TkTimer.new(20, -1, proc{poly_rotate(poly, 5)}).start That is, ----------------------------------------------------------------- timer = TkTimer.new(20, -1, proc{poly_rotate(poly, 5)}) timer.start ----------------------------------------------------------------- -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)