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 mookie
2 hours ago
tcl by cgm
1 days ago
tcl by egavilan
7 days ago
tcl by smlckz
8 days ago
tcl by Guest86
13 days ago
tcl by mookie
15 days ago
tcl by greycat
20 days ago
tcl by mookie
27 days ago
tcl by mookie
27 days ago
tcl by mookie
33 days ago
Submit
New paste
Documentation
From Jabber