From: Bill Waddington on
My toy sudoku solver:

http://www.beezmo.com/scratch/sudoku/newsudoku.tcl

works as expected on Windows and Linux machines. I just tried it
under OS X in a VM with ActiveTcl 8.5.8.1 installed.

It runs, but the button color of the "CHECK" button doesn't change,
either when the code runs or when trying to change it manually
in the wish console. I don't see any error indication, it just
doesn't do anything.

Any suggestions how I can chase this down? I'll keep poking at
it, but I'm a complete n00b and need a clue.

Thanks,
Bill
--
William D Waddington
william.waddington(a)beezmo.com
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch
From: Kevin Walzer on
On 2/9/10 9:41 AM, Bill Waddington wrote:
> My toy sudoku solver:
>
> http://www.beezmo.com/scratch/sudoku/newsudoku.tcl
>
> works as expected on Windows and Linux machines. I just tried it
> under OS X in a VM with ActiveTcl 8.5.8.1 installed.
>
> It runs, but the button color of the "CHECK" button doesn't change,
> either when the code runs or when trying to change it manually
> in the wish console. I don't see any error indication, it just
> doesn't do anything.
>
> Any suggestions how I can chase this down? I'll keep poking at
> it, but I'm a complete n00b and need a clue.
>
> Thanks,
> Bill

On the Mac, Tk buttons use the native buttons and they are not as
configurable as Tk buttons on Unix. You can change the color of text but
not of the button itself.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
From: Will Duquette on
On Feb 9, 6:41 am, Bill Waddington <william.wadding...(a)beezmo.com>
wrote:
> My toy sudoku solver:
>
> http://www.beezmo.com/scratch/sudoku/newsudoku.tcl
>
> works as expected on Windows and Linux machines.  I just tried it
> under OS X in a VM with ActiveTcl 8.5.8.1 installed.
>
> It runs, but the button color of the "CHECK" button doesn't change,
> either when the code runs or when trying to change it manually
> in the wish console.  I don't see any error indication, it just
> doesn't do anything.
>
> Any suggestions how I can chase this down?  I'll keep poking at
> it, but I'm a complete n00b and need a clue.
>
> Thanks,
> Bill
> --
> William D Waddington
> william.wadding...(a)beezmo.com
> "Even bugs...are unexpected signposts on
> the long road of creativity..." - Ken Burtch

Try using a standard Tk label. IIRC you can set its foreground and
background even on OSX, and you can set its relief so that it looks
like a button.

Alternatively, use a canvas, and draw your sudoku squares on the
canvas. Then, you can make them look however you like.
From: tom.rmadilo on
On Feb 9, 7:10 am, Will Duquette <w...(a)wjduquette.com> wrote:
> On Feb 9, 6:41 am, Bill Waddington <william.wadding...(a)beezmo.com>
> wrote:
>
>
>
>
>
> > My toy sudoku solver:
>
> >http://www.beezmo.com/scratch/sudoku/newsudoku.tcl
>
> > works as expected on Windows and Linux machines.  I just tried it
> > under OS X in a VM with ActiveTcl 8.5.8.1 installed.
>
> > It runs, but the button color of the "CHECK" button doesn't change,
> > either when the code runs or when trying to change it manually
> > in the wish console.  I don't see any error indication, it just
> > doesn't do anything.
>
> > Any suggestions how I can chase this down?  I'll keep poking at
> > it, but I'm a complete n00b and need a clue.
>
> > Thanks,
> > Bill
> > --
> > William D Waddington
> > william.wadding...(a)beezmo.com
> > "Even bugs...are unexpected signposts on
> > the long road of creativity..." - Ken Burtch
>
> Try using a standard Tk label.  IIRC you can set its foreground and
> background even on OSX, and you can set its relief so that it looks
> like a button.
>
> Alternatively, use a canvas, and draw your sudoku squares on the
> canvas.  Then, you can make them look however you like.

Another option is to create two buttons and lower/raise the active
button.

Or, only show the check button when something changes, after a
successful check, the button could disappear.
From: Arndt Roger Schneider on
Bill Waddington schrieb:
> My toy sudoku solver:
>
> http://www.beezmo.com/scratch/sudoku/newsudoku.tcl
>
> works as expected on Windows and Linux machines. I just tried it
> under OS X in a VM with ActiveTcl 8.5.8.1 installed.
>
> It runs, but the button color of the "CHECK" button doesn't change,
> either when the code runs or when trying to change it manually
> in the wish console. I don't see any error indication, it just
> doesn't do anything.
>
> Any suggestions how I can chase this down? I'll keep poking at
> it, but I'm a complete n00b and need a clue.
>
> Thanks,
> Bill

As Kevin wrote: Tk buttons are native under AQUA.
You can use gstripes to hijack buttons, etc. under
AQUA.

Examples:

http://gestaltitems.sourceforge.net/geitems/Gstripes_Controls.html#d0e2397

Gstripes does not normally hijack active
controls under AQUA -- You have to force it
to do so...:

button .mybutton
option add *mybutton.force 1

.... does it.

I am using this on the general preferences page
in Jeszra, were editing Jeszra features a red colored button:
http://jeszra.sourceforge.net/jeszra/miscX11.html


You need tkpath for using gstripes that way!
The presented SVG was made with Tk 8.4 and
TkPath 0.2.4 under 10.4.

-roger