http://www.perlmonks.org?node_id=835644

pavunkumar has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, In Perl tk I have designed one interface in that I have one frame . That frame has some Entry And Text box . When I am clicking the button those Entry and Text value has to clear in the Frame .I know that we can access each ( Entry , Text ) object then we can clear using delete function. I need to do as like html reset button functionality . How can I do this things in Perl Tk...... Thanks ...

Replies are listed 'Best First'.
Re: Perl Tk : Clearing Frame Elements
by lamprecht (Friar) on Apr 20, 2010 at 05:46 UTC
    Hi,

    You create a Tk::Button and define the required action using the -command option which takes an argument as described in Tk::callbacks

    Cheers, Christoph