in reply to Perl/tk Text Boxes insert problem

By default, the GUI is updated only at the end of each event handler.

You can change that by calling a special method on Tk, which forces it to update its GUI widgets immediately. Sadly I forgot the name of the method, but I'm sure you can find it in the documentation, now that you know what to search for. (I think it has something with "update" or "idle" or so in the name).

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Perl/tk Text Boxes insert problem
by xSmallDeadGuyx (Initiate) on Jul 14, 2010 at 13:54 UTC

    Thank you for your help. I fixed it by putting this code after each section it updates. I also changed the textbox to a label and used configure(-text => "blah"):

    $main => update;