|
From: Joe E. <jen...@fl...> - 2007-01-16 18:17:32
|
Ken Tilton wrote: > [...] > >> wish seemed to get into Tile without any help, but I guess I have to > >> give Tk a nudge. Reasonable enough. But what is the nudge? the doc says: > >> > >> "If you're feeling adventurous, you can try: > >> > >> namespace import ttk::*" You omitted the next sentence, which is very important: *in your application's namespace(s)* [...]". Don't say [namespace import ttk::*] at global scope, this Does Not Work and Will Break Stuff. > > OK, got this much: > > > > (tk-format-now "package require tile") ;; <-- oops, needed this That was my first guess as to what was missing... > > (tk-format-now "namespace import -force ttk::*") Don't do that, see above. > > Now I get -pady is an invalid option. Understood, but some doc I saw > > said all options were supported for setting and querying though > > otherwise inoperative just to make exercises such as mine (switching > > to Tile in two minutes) feasible. Not so? Not anymore, sorry. Earlier Tile releases used to include compatibility options as an experiment to see how feasible it would be to maintain complete- or near-complete API compatibility with Tk 8.4. The results of the experiment were: not very feasible. The compatibility options caused more problems than they solved, so were removed in the 0.7 release. > OK, I broke down and defeated all the inappropriate options, did a > setTheme to xpnative, and voila, it all works. Way cool. But... was > there an easier way? You don't need to call "setTheme"; the library startup script automatically chooses an appropriate theme for you. > Two other questions: > > 1. should I worry about that -force option? > 2. Looking at the themes listed here > http://tktable.sourceforge.net/tile/index.html i do not see anything > that cries out "OS X native aqua" That's just because Pat (who maintains the website) doesn't have a Mac to take screenshots on :-) The "aqua" theme -- which will be selected by default on OSX -- has a reasonably good native look and feel. --Joe English |