[Tkinter-discuss] Per-state option sintax in TkTreectrl

Dmitry Gerasimov dmitry-gerasimov at yandex.ru
Thu Jul 26 12:41:36 CEST 2007


Hello!
I'm trying to release example from tktreectrl named biglist.tcl using 
wraper TkTreectrl. There are some lines in tcl source like

$T style layout $S eRectTop.e -detach yes -indent no -iexpand xy -draw 
{yes open no {}}

containing per-state values like "{yes open no {}}" for options. How 
them can be specified for wraper? Writing something like

tree.style_layout("styItem","eRectTop", detach="yes", indent="no" , 
iexpand="xy", draw = "{yes open no {}}")

gives

unhandled TclError
"expected boolean value but got "yes open no {} "

on the run.



More information about the Tkinter-discuss mailing list