in reply to SuDoTKu

Nice!
Only that i did not know the game, it gives a better idea on how to use Tk and Perl.
One issue: i got a Tk::Error: bad state value "readonly": must be normal or disabled at test.pl line 177. when pressing the right button to 'lock' a cell, so i had to %s/readonly/disabled/g to make it work on my debian machine.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^2: SuDoTKu
by polettix (Vicar) on Jul 25, 2005 at 10:02 UTC
    I used Tk version 804.026, which should be the latest according to CPAN.

    Anyway, I updated the code above using disabled instead of readonly. I also set the -disabledforeground to blue, to preserve the original look for the fixed entries (light gray is too difficult to read IMHO).

    Thanks for the feedback!

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.
      The latest version of Tk is 804.027

      I'm not really a human, but I play one on earth. flash japh