Don't ask to ask, just ask | |
PerlMonks |
Re: (ichimunki) Re: Clearing entry boxes in a GUI?by ralfthewise (Sexton) |
on Jun 21, 2001 at 22:27 UTC ( [id://90481]=note: print w/replies, xml ) | Need Help?? |
Thanks! Another question if I may I have five entry boxes to clear. I used your second -command structure ($Entry->delete(0,'end') and chained it into the code like thus: $top->Button(-text=>"Save RegEdits to a File", -foreground=>"blue", -command=>sub{save()}, -command => sub { $entry1->delete( 0, 'end' )}, -command => sub { $entry1->delete( 0, 'end' )}, -command => sub { $entry3->delete( 0, 'end' )}, -command => sub { $entry4->delete( 0, 'end' )} )->pack() But the daisy chained -commands looking at each entry didn't all work. In fact, only the first worked, and for some reason the save fxn at the beginning didn't work either. What am I doing wrong? john
In Section
Seekers of Perl Wisdom
|
|