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 dandyn
10 days ago
tcl by dandyn
10 days ago
tcl by schelte
15 days ago
tcl by schelte
17 days ago
tcl by rhobart
17 days ago
tcl by bjorkintosh
24 days ago
tcl by dandyn
27 days ago
tcl by dandyn
27 days ago
tcl by bleb
32 days ago
Submit
New paste
Documentation
From Jabber