0

After upgrade of the system from Ubuntu 10.10 to Ubuntu 11.04, have a problem with LTK. Programs with LTK load successful, but after loading the function I had an error "Can't find TTK package". As I know TTK is the part of Tk libraries. But Tcl\Tk is installed and configured.

Lissomort
  • 103
  • 1
  • 1
  • 7
  • Why don't you set the ltk debug variable and see what the actual error is? If you can't figure it out, can you edit the error message into the question? – Paul Nathan Sep 10 '11 at 04:53
  • @Paul. Here is the message from slime terminal: "Tcl\Tk error: invalid command name "ttk:frame" [Condition of type LTK:TK-ERROR]" – Lissomort Sep 10 '11 at 06:02
  • Fire up wish and replicate the commands in Wish as a path to determining the error. I also suggest editing your question with the specific LTK code. – Paul Nathan Sep 12 '11 at 16:02

2 Answers2

0

The current releases of LTk require wish8.5 or above. Wish is invoked via the command in *wish-pathname*. So make either sure that wish which is the default, is in your path and points to version 8.5 or above (some systems only install it as wish8.5). Alternatively, you can change the content of *wish-pathname* to the name of the correct wish executable.

Peter H.
  • 36
  • 1
0

You need to have Tk 8.5 in order to have Ttk (or a special development package with a different name — Tile — with Tk 8.4, but that's not recommended). You also need to make sure that the name used when invoking things uses a double-colon (ttk::frame) because that's the namespace separator; single colon is just an unusual part of a normal command name. (I don't know if that was caused by your transcription of the error message though.)

Donal Fellows
  • 133,037
  • 18
  • 149
  • 215