|
From: Roberto H. <ro...@ad...> - 2001-10-10 05:05:48
|
Hello everyone,
I'm having a small problem when using the Tk driver. When I select Plot -->
Options --> Palette 0 (or 1) from the plot menu I get the following error
message: Error: bad window path name "". The a new toplevel window pops up,
but it's blank.
I checked through the Tcl libraries and figured out that the procedures
called when selectecting those items are:
------------------------
proc plcmap1_edit {plot} {
global ncol1 plcmap1_col plcmap1_pos palette
catch {destroy .edit}
toplevel .edit
dpos .edit
wm title .edit "Color Map 1 Editor"
wm iconname .edit "Cmap1 Editor"
wm minsize .edit 100 100
pack append .edit \
[Buttons1:create [Buttons1] .edit.buttons $plot] "top fillx"
pack append .edit \
[ColorPalette1:create \
[set palette [ColorPalette1]] .edit.palette $plot] "left filly"
}
(same for plcmap0_edit)
------------------------
The error message comes from trying to execute the last two "pack append"
commands because of the "Buttons1:create" part. I looked for that and it
appears to be a subclass.
I get the feeling that the problem lies in the fact that I built PLplot
without the ITCL bindings. Am I right? Is ITCL necessary for choosing
different palettes?
Thanks,
Roberto
|