in reply to Re: (ichimunki) Re: Clearing entry boxes in a GUI?
in thread Clearing entry boxes in a GUI?

You can only have one -command attribute per Button widget. You might try:
-command => sub {$e1->delete(0,'end'); $e2->delete(0,'end'); ... $e5->delete(0,'end'); }
Or better yet, instead of sub, use a reference to an actual subroutine so your button declaration isn't so messy and that way you can call the resulting sub from other places in the script if needed.

Replies are listed 'Best First'.
Re: (ichimunki) {Re} x 2: Clearing entry boxes in a GUI?
by ralfthewise (Sexton) on Jun 21, 2001 at 23:34 UTC
    p.s.
    I'm rather new to perlmonks.com. I thought I saw somewhere that I could vote on helpful responses to queries. If so, how do I do that?
    john