in reply to Clearing entry boxes in a GUI?
If it's Gtk you could just delete the text of the entry-widgets in the function which is connected to the save button.
Say you got:
The the function savethings could be something like# ... lots of stuff $entry = new Gtk::Entry(8); $button = new Gtk::Button("Save"); # pass the entry-varible to the sub, if it ain't global $button->signal_connect( "clicked", \&savethings, $entry); # ... lots of more stuff :-)
sub savethings { # here we receive the entry-widget (and the save-button, too) my ($savebutton,$entry) = @_; # delete text in entry $entry->set_text(""); # save things # ... }
Hope this helps.
| Regards... | Stefan |
|
|---|