beetlebug▾
/

ttk::treeview yview

Gives or moves the vertical view of the rows.

PATHNAME yview
PATHNAME yview moveto FRACTION
PATHNAME yview scroll COUNT units|pages|pixels

Description

With no argument, gives two fractions: the start and the end of the visible part of the rows. moveto puts that fraction of the rows at the top. scroll moves by COUNT rows or COUNT pages.

Returns

Two fractions, or an empty string.

Examples

% ttk::treeview .ttvyv -height 5
> for {set i 0} {$i < 20} {incr i} {.ttvyv insert {} end}
> pack .ttvyv
> update
> .ttvyv yview scroll 2 units
> update
> expr {[lindex [.ttvyv yview] 0] > 0}
1

Errors

% ttk::treeview .ttvyv2; .ttvyv2 yview foo
expected integer but got "foo"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also