remove entries in the gui

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

hi all,

every time when i run the same script for the second,third... times ,the previous entries are displayed by default as highlighted in the below snapshot.i want to clear these entries each time i run .

Capture.PNG.d0a566f1b778f3813e2a9dfda809fa21.PNG

 

thanks in advance 

 

regards,

JAMIE

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    You can clear highlight in a tk entry widget with pathName selection clear. If you want to clear text in an entry widget, use pathName delete 0 end.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2017

    You can clear highlight in a tk entry widget with pathName selection clear. If you want to clear text in an entry widget, use pathName delete 0 end.

    HEY akitoguc 

     its not working....

  • tinh
    tinh Altair Community Member
    edited November 2017

    when you created the entry widget, i am sure that you give it a -textvariable option,

    example 

    entry .entOutputPath -textvariable varOutputPath

    then you can clear it by

    set ::varOutputPath ''