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 dandyn
1 days ago
tcl by Stu
4 days ago
tcl by philbr-t
9 days ago
tcl by arjen
11 days ago
tcl by brain
17 days ago
tcl by mjanssen
20 days ago
tcl by godotdot
20 days ago
tcl by Bradipo
20 days ago
tcl by Stu
23 days ago
tcl by Stu
23 days ago
Submit
New paste
Documentation
From Jabber