List Info

Thread: Per-state option sintax in TkTreectrl




Per-state option sintax in TkTreectrl
country flaguser name
Russian Federation
2007-07-26 05:41:36
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.

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: Per-state option sintax in TkTreectrl
country flaguser name
Germany
2007-07-30 13:25:43
On Thu, 26 Jul 2007 15:41:36 +0500
Dmitry Gerasimov <dmitry-gerasimovyandex.ru> wrote:

> 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.

Hi Dmitry,

I think you should use a tuple, like

    tree.style_layout(draw = ("yes",
"open", "no", ""))

I hope this helps

Michael
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: Per-state option sintax in TkTreectrl
country flaguser name
Russian Federation
2007-08-06 03:44:00
Michael Lange wrote:
> Hi Dmitry,
> 
> I think you should use a tuple, like
> 
>     tree.style_layout(draw = ("yes",
"open", "no", ""))
> 
> I hope this helps
> 
> Michael

Hi Michael,
Thank you for your advice. Acting upon it fixed the
problem.

Dmitry

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )