Another timer application. This implements a toggle button for the Pause/Unpause buttons, so only two buttons are really needed. Version 0.1 wasn’t accurate (animate just incremented the number of seconds) and the toggle button was hacked in. Version 0.2 is accurate and extracts the ToggleButton class for you to use (with some minor modifications) in your code.
Speak now or forever hold your peace:
only reset button shows up, and how do i start the timer?
“@test” should be “@reset” in the call to ToggleButton.new() (line 73).
When run, if you pick reset it just “pauses”.
Current Code:
@display = stack :margin => 10 reset display_timeMy Change:
@display = stack :margin => 10 reset update_time display_timeWorks much better. I think it should have a “Start” button as well.
My bad.. Please disregard my change. But I figured out a problem.
If you let the timer run, and hit “Reset”, then let it run. It works as expected.
But if you let it run, then hit “Reset”, then let it run and hit “Pause”, and then hit “Reset”. The "Reset button has also become a “Pause” / “Un-Pause” button as well.

asdfasdf