2007/11/19, zentara <[EMAIL PROTECTED]>:
>
> On Mon, 19 Nov 2007 00:14:29 +0800, [EMAIL PROTECTED] (Panda-X)
> wrote:
>
> >Hi all,
> >
> >Below is my code. With this code, 12345 will show at once
> >after 5 seconds I click the button.
> >But what I want is to insert() each number per second.
> >Is that something I can do like $| = 1 in such case ?
> >
> >At least, could anybody tell this is the behavior of insert () ?
> >or it's the behavior of -command => sub {} ?
> >
> >Thank you very much !
> >==============================
>
> It would be nice if you posted a complete running example,
> because it's hard to say whether it's Text widget update problem,
> OR the way you setup the class.
> Usually, in your case, the problem is solved by putting an update
> right after the text insert, this forces the Text widget to update
> itself immediately. But you may need to update the $mw too, since
> it's a class.
>
> >sub RollText{
> > for ( 1..5 ) {
> > $_[0] ->{mw}{box} -> insert ( 'end', $_ ) ;
> # sleep 1;
> $_[0] ->{mw}{box}->update;
>
> #or possibly you need to tell the $mw to update the class
> $_[0] ->{mw}->update;
>
> > }
> >}
>
> zentara
>
> --
> I'm not really a human, but I play one on earth.
> http://zentara.net/japh.html
>
>
THANK YOU!!!!!!!!!!! That's exactly what I want !!!
Again, THANK YOU VERY MUCH =)