Re: Only inserting on keyboard/mouse event

Simon Walters <[email protected]>
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
Hi, that works, but now, as soon as the text area is full, it locks
up. It doesn't lock up if I remove $textarea -> yview(moveto => 1)
Why do they not work well together?

Thanks,
Simon

On 26/10/05, Todd Littlefield <[email protected]> wrote:
> Hi Simon,
>
>     You probably want to issue an update command on the widget once you
> are done with the insert.  i.e.
>
> $tw->insert( 'end', "blah blah blah" );
> $tw->update;
>
> That should force the widget to redraw itself and the text will be visible.
>
> Simon Walters wrote:
>
> >Hi, I'm new to perl-tk, but I've managed to make a window with a text
> >area in the middle. I have also set up a different thread to insert
> >text into a text area whenever a specified event occurs (recieves data
> >from client). This is all working together nicely, except that for the
> >text to show up in the text area, the mouse needs to be moved in the
> >window, or a
> >button on the keyboard needs to be pressed. How do I just get it shown
> >when it's inserted, and not require the input event, or focus, on the window?
> >
> >Thanks,
> >Simon
> >
> >-++**==--++**==--++**==--++**==--++**==--++**==--++**==
> >This message was posted through the Stanford campus mailing list
> >server.  If you wish to unsubscribe from this mailing list, send the
> >message body of "unsubscribe ptk" to [email protected]
> >
> >
> >
>
>

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.