Hi,
I'm getting error messages and freeze when trying to set toggle label as "
, using a [label "( message.
I have tried escaping the double quotes with a backslash, but no luck there...
Here is the error :
(Tcl) UNHANDLED ERROR: extra characters after close-quote
while executing
".x55bcea3ad440.c itemconfigure 55bcea3e1980LABEL -text [::pdtk_text::unescape "" "]
.x55bcea3ad440.c itemconfigure 55bcea3fa280X1 -fill #000000
.x55b..."
("uplevel" body line 1)
invoked from within
"uplevel #0 $docmds".x55bcea3ad440: no such object
x55bcea3ad440: no such object
x55bcea3ad440: no such object
...
and then it gets stuck forever...
Any idea how to get around this ?
Thanks
The problem happens on Ubuntu but not on MacOS, I haven't tested on Windows or other distros.
What's also strange is that it seems to work the first time with loadbang, but then if there's another bang the error happens, but I guess this might be due to how the abstraction is coded and how dollarsigns are handled.
For some context, I'm making a patch that can be controlled from my laptop's keyboard.
I am using [keyname] because it catches more keys than [key] (like Shift for example).
I am using an abstraction for each key to get a nice UI, where you can only see the key toggle with a label that changes when Shift or Caps_Lock is pressed.