Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a "reset" button for each side.

  • Loading branch information...
commit da7f8c2715541f7c5688d28836e8e149601a8ce5 1 parent 2ca583a
@minter authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/scoreboard.pl
View
4 plugins/scoreboard.pl
@@ -72,6 +72,8 @@ sub scoreboard_plugin
->pack( -side => 'left' );
$vis_minus->Button( -text => '-10', -command => sub { $vis_score -= 10 } )
->pack( -side => 'left' );
+ $vis_side->Button( -text => 'Reset', -command => sub { $vis_score = 0 } )
+ ->pack( -side => 'top', -pady => '5' );
$home_side->Label( -text => 'Home' )->pack( -side => 'top' );
$home_side->Label(
@@ -95,6 +97,8 @@ sub scoreboard_plugin
-text => '-10',
-command => sub { $home_score -= 10 }
)->pack( -side => 'left' );
+ $home_side->Button( -text => 'Reset', -command => sub { $home_score = 0 } )
+ ->pack( -side => 'top', -pady => '5' );
$scoreboard->update();
$scoreboard->deiconify();
Please sign in to comment.
Something went wrong with that request. Please try again.