Is there no easier way to check detachedness of a ttk::treeview item?
Posted to
tcl
by schelte at Fri Jul 14 10:48:44 GMT 2017
view raw
proc
detached {tv item} {
while
{[
set
parent [
$tv
parent
$item
]] ne ""} {
set
item
$parent
}
return
[
expr
{[
lindex
[
$tv
children {}] [
$tv
index
$item
]] ne
$item
}]
}
Recent Posts
tcl by iobates
10 days ago
tcl by iobates
10 days ago
tcl by iobates
10 days ago
tcl by FLORENTIS
13 days ago
tcl by Florentis
14 days ago
tcl by schelte
19 days ago
tcl by iobates
19 days ago
tcl by cgm
20 days ago
tcl by iobates
25 days ago
tcl by FM
29 days ago
Submit
New paste
Documentation
From Jabber