Updating a textbox

  • Anonymous - 2002-06-12

    I'm sure this must be simple. I'm trying to update the text within a text box, but seem to be having trouble.

    e.g. in the additional code I have the line:

    .text#1 -insert "Hello world"

    which I'm hoping will put the words "Hello world" in the text box.

    On a different note, is there some way that I can insert the current date (according to the OS) into a variable?


    • Nobody/Anonymous

      You need

      .text#1 insert end "Hello world"

      or better still

      $base.text#1 insert end "Hello world"

      since this would work for any toplevel window

      Read the manual for the "clock" command for the other question.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks