I have an dialog box that appears and asks the user for some information. When the user presses the "SAVE" button, the text is read and stored in an internal data structure. This all works fine.
When the dialog box appears the second time the old text is still visible in the entry widgets. I need to clear each entry widget during some point in my session with the end user.
I know I can use <path_to_entry_widget> delete 1.0 end to clear the entry box. Must I invoke the delete command on every entry widget, or is there a more general command I could use to refresh the dialog data? I would like to clear the entry widgets upon exit of the dialog box. Is there a way to call a procedure upon exit of a dialog box?
Thank you in advance.
When the dialog box appears the second time the old text is still visible in the entry widgets. I need to clear each entry widget during some point in my session with the end user.
I know I can use <path_to_entry_widget> delete 1.0 end to clear the entry box. Must I invoke the delete command on every entry widget, or is there a more general command I could use to refresh the dialog data? I would like to clear the entry widgets upon exit of the dialog box. Is there a way to call a procedure upon exit of a dialog box?
Thank you in advance.