Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: SuDoTKu

by jbrugger (Parson)
on Jul 25, 2005 at 04:33 UTC ( [id://477675]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-18 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found