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
28 days ago
tcl by oldlaptop
33 days ago
tcl by rhobart
46 days ago
tcl by rhobart
46 days ago
tcl by rhobart
46 days ago
tcl by Bradipo
46 days ago
tcl by rhobart
46 days ago
tcl by sssc
50 days ago
tcl by mookie
66 days ago
tcl by JMN
74 days ago
Submit
New paste
Documentation
From Jabber