Search code examples
perlperltk

How do I clear a Frame's value in Perl/Tk?


In Perl/Tk I have designed one interface in that I have one frame. That frame has an Entry and Text box. When I am clicking the button those Entry and Text value has to clear in the Frame. I know that I can access each object then I can clear using delete function. I need to do as like HTML form reset button functionality. How can I do these things in Perl Tk?


Solution

  • Create a button that has access to the variables holding the values for the other widgets you want to affect. When you press the button, reset the values in those variables.

    Can you show us what you have tried to far?