in reply to help needed with simple tk interface

Try $main->update; after changing $msg.