How to write reset method in Tk

Hi all,

I have a small GUI/Tk with several buttons: start, next, prev, reset,
and exit.

It also contains several check_buttons which contain some default
settings

When I press “start_button”, it collects all the status of each
check_button and then do the job as I expect. My question is that how
can I write some codes for “reset_button” so that I can reset the
statuses of all widgets to the default settings after I press the
“reset_button”?

Thank you very much in advances.

The problem solved: I forget calling the method associated with “reset
button”. I put this method into #initialize and I can reset the widgets.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs