Uwe Zdun wrote:
-opencmd "[self] modifyTree 1 $sw.tree" \ -closecmd "[self] modifyTree 0 $sw.tree"] ... $tree bindText <ButtonPress-1> "[self] selectTreeElement $tree" $tree bindText <Double-ButtonPress-1> "[self] openTreeElement $tree"
And of course you always want to write core like the above as:
-opencmd [list [self] modifyTree 1 $sw.tree] or $tree bindText <ButtonPress-1> [list [self] selectTreeElement $tree]
otherwise you are asking for a maintenance headache.