logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Only inserting on keyboard/mouse event: msg#00016

Subject: Re: Only inserting on keyboard/mouse event
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 <t.littlefield@xxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxxxxx
> >
> >
> >
>
>

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
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 majordomo@xxxxxxxxxxxxxxxxxx




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>