From: Bill Waddington on 14 Feb 2010 12:57 Hi all, I', still fiddling with my toy sudoku script. (Is script the right term, or program or ???) And still a total n00b. This may sound like a complaint about free tools. That's not my intent. This is just curiousity about something not too important. I've run this as a script using the Active State free tools on Win 7, Linux, and OS X Aqua. The resulting GUI looks pretty similar on all platforms when run that way - excepting the buttons on OS X where I can't change the background color, or so far the foreground color. Using freewrap to build a stand-alone executable for Windows makes an essentially identical looking GUI. Using freewrap or tclkit on OS X does not. Each entry "cell" has additional border, relief, <something>, that makes it rather unattractive and very different in appearance. (Figuring out how to build an OS X app, now that was a highway!) I'm wondering if this is some kind of limitation or intentional choice on the part of the tclkit folks, or maybe just a different set of defaults. If the latter, would explicit declaration of widget features on my part bring things back into conformity? Like I said, this isn't really important at the moment. It's just a personal learning project. Even so, I welcome any input. Apologies for the long post. The executables don't break anything on my bare-metal or VM OSs, but YMMV! http://www.beezmo.com/scratch/sudoku/newsudoku.tcl http://www.beezmo.com/scratch/sudoku/newsudoku.txt http://www.beezmo.com/scratch/sudoku/newsudoku.exe http://www.beezmo.com/scratch/sudoku/osx/newsudoku_app.dmg Thanks, Bill -- William D Waddington william.waddington(a)beezmo.com "Even bugs...are unexpected signposts on the long road of creativity..." - Ken Burtch
From: Christian Gollwitzer on 15 Feb 2010 05:00 Bill Waddington schrieb: > Hi all, > Using freewrap to build a stand-alone executable for Windows makes > an essentially identical looking GUI. Using freewrap or tclkit on > OS X does not. Each entry "cell" has additional border, relief, > <something>, that makes it rather unattractive and very different > in appearance. (Figuring out how to build an OS X app, now that > was a highway!) I'm too lazy to check it now, but 1) Make sure you have the same tcl version in tclkit, i.e. 8.4 might look different than 8.5 2) Provide screenshots, so we don't have to check for ourselves. 3) I managed to compile kbskit (modernized tclkit, 8.5.7) on OSX. YOu can try to use this instead of tclkit: http://xgray.svn.sourceforge.net/viewvc/xgray/Runtime/ (The Darwin* executable) Christian
From: Sean Woods on 15 Feb 2010 11:02 On Feb 14, 12:57 pm, Bill Waddington <william.wadding...(a)beezmo.com> wrote: > Hi all, > > I', still fiddling with my toy sudoku script. (Is script the right > term, or program or ???) And still a total n00b. > > This may sound like a complaint about free tools. That's not my > intent. This is just curiousity about something not too important. > > I've run this as a script using the Active State free tools on Win 7, > Linux, and OS X Aqua. The resulting GUI looks pretty similar on > all platforms when run that way - excepting the buttons on OS X where > I can't change the background color, or so far the foreground color. > > Using freewrap to build a stand-alone executable for Windows makes > an essentially identical looking GUI. Using freewrap or tclkit on > OS X does not. Each entry "cell" has additional border, relief, > <something>, that makes it rather unattractive and very different > in appearance. (Figuring out how to build an OS X app, now that > was a highway!) > > I'm wondering if this is some kind of limitation or intentional > choice on the part of the tclkit folks, or maybe just a different > set of defaults. If the latter, would explicit declaration of > widget features on my part bring things back into conformity? > > Like I said, this isn't really important at the moment. It's just > a personal learning project. Even so, I welcome any input. > Apologies for the long post. > > The executables don't break anything on my bare-metal or VM OSs, > but YMMV! > > http://www.beezmo.com/scratch/sudoku/newsudoku.tclhttp://www.beezmo.com/scratch/sudoku/newsudoku.txt > > http://www.beezmo.com/scratch/sudoku/newsudoku.exehttp://www.beezmo.com/scratch/sudoku/osx/newsudoku_app.dmg > > Thanks, > Bill > -- > William D Waddington > william.wadding...(a)beezmo.com > "Even bugs...are unexpected signposts on > the long road of creativity..." - Ken Burtch Bill, Many of us that target all three platforms have run across that issue, which is why Joe English developed an alternate widget set called "tile". Tile is built into stock Tk 8.5 and beyond. To use the , change out your button, label, etc commands for ttk::button, ttk::label, etc. The documentation on how to use them is included in Active State's TK documentation. (Actually, tile is considered part of the core by this point..) Hope that helps, Sean "The Hypnotoad" Woods
From: Bill Waddington on 15 Feb 2010 11:28 On Mon, 15 Feb 2010 11:00:51 +0100, Christian Gollwitzer <Christian.Gollwitzer(a)uni-bayreuth.de> wrote: >Bill Waddington schrieb: >> Hi all, >> Using freewrap to build a stand-alone executable for Windows makes >> an essentially identical looking GUI. Using freewrap or tclkit on >> OS X does not. Each entry "cell" has additional border, relief, >> <something>, that makes it rather unattractive and very different >> in appearance. (Figuring out how to build an OS X app, now that >> was a highway!) > >I'm too lazy to check it now, but > >1) Make sure you have the same tcl version in tclkit, i.e. 8.4 might >look different than 8.5 >2) Provide screenshots, so we don't have to check for ourselves. >3) I managed to compile kbskit (modernized tclkit, 8.5.7) on OSX. YOu >can try to use this instead of tclkit: > >http://xgray.svn.sourceforge.net/viewvc/xgray/Runtime/ > >(The Darwin* executable) > > Christian Thanks Christian, 1) The versions _are_ somewhat different. I don't know if that's the explanation or not. I'll try to match versios if I can and see. 2) _Very_ good point. I shouldn't have asked people to download strange executables. So: http://www.beezmo.com/scratch/sudoku/osx/CompareTCL.jpg 3) Thanks. I'll try that when I can. 0 - "I'm too lazy...") Not at all! I appreciate the response. Thanks again, Bill -- William D Waddington william.waddington(a)beezmo.com "Even bugs...are unexpected signposts on the long road of creativity..." - Ken Burtch
From: Bill Waddington on 15 Feb 2010 11:39
On Mon, 15 Feb 2010 08:02:41 -0800 (PST), Sean Woods <yoda(a)etoyoc.com> wrote: >On Feb 14, 12:57�pm, Bill Waddington <william.wadding...(a)beezmo.com> >wrote: >> Hi all, >> >> I', still fiddling with my toy sudoku script. �(Is script the right >> term, or program or ???) �And still a total n00b. >> >> This may sound like a complaint about free tools. �That's not my >> intent. �This is just curiousity about something not too important. >> >> I've run this as a script using the Active State free tools on Win 7, >> Linux, and OS X Aqua. �The resulting GUI looks pretty similar on >> all platforms when run that way - excepting the buttons on OS X where >> I can't change the background color, or so far the foreground color. >> >> Using freewrap to build a stand-alone executable for Windows makes >> an essentially identical looking GUI. �Using freewrap or tclkit on >> OS X does not. �Each entry "cell" has additional border, relief, >> <something>, that makes it rather unattractive and very different >> in appearance. �(Figuring out how to build an OS X app, now that >> was a highway!) >> >> I'm wondering if this is some kind of limitation or intentional >> choice on the part of the tclkit folks, or maybe just a different >> set of defaults. �If the latter, would explicit declaration of >> widget features on my part bring things back into conformity? >> >> Like I said, this isn't really important at the moment. �It's just >> a personal learning project. �Even so, I welcome any input. >> Apologies for the long post. >> >> The executables don't break anything on my bare-metal or VM OSs, >> but YMMV! >> >> http://www.beezmo.com/scratch/sudoku/newsudoku.tcl >> http://www.beezmo.com/scratch/sudoku/newsudoku.txt >> >> http://www.beezmo.com/scratch/sudoku/newsudoku.exe >> http://www.beezmo.com/scratch/sudoku/osx/newsudoku_app.dmg >> >> Thanks, >> Bill >Bill, > >Many of us that target all three platforms have run across that issue, >which is why Joe English developed an alternate widget set called >"tile". Tile is built into stock Tk 8.5 and beyond. To use the >, change out your button, label, etc commands for ttk::button, >ttk::label, etc. The documentation on how to use them is included in >Active State's TK documentation. (Actually, tile is considered part of >the core by this point..) > >Hope that helps, >Sean "The Hypnotoad" Woods Thanks Sean, I need to get a little smarter before I give that a try, but I will when I can. Screen shot of what I'm seeing: http://www.beezmo.com/scratch/sudoku/osx/CompareTCL.jpg Bill -- William D Waddington william.waddington(a)beezmo.com "Even bugs...are unexpected signposts on the long road of creativity..." - Ken Burtch |