diff options
author | csaba <csaba> | 2024-01-09 19:37:15 (GMT) |
---|---|---|
committer | csaba <csaba> | 2024-01-09 19:37:15 (GMT) |
commit | f54d2314a42333d44db843e14cc6fbc43b702067 (patch) | |
tree | 748637e8ca69c6b4c49449012ef9c75b71eb28d3 /doc | |
parent | 737e80a70a094c787b302210f8827cababb2c816 (diff) | |
download | tk-f54d2314a42333d44db843e14cc6fbc43b702067.zip tk-f54d2314a42333d44db843e14cc6fbc43b702067.tar.gz tk-f54d2314a42333d44db843e14cc6fbc43b702067.tar.bz2 |
Scrolling-related improvements in the documentation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/canvas.n | 3 | ||||
-rw-r--r-- | doc/listbox.n | 3 | ||||
-rw-r--r-- | doc/scrollbar.n | 4 | ||||
-rw-r--r-- | doc/ttk_widget.n | 3 |
4 files changed, 8 insertions, 5 deletions
diff --git a/doc/canvas.n b/doc/canvas.n index 95f073c..cda7706 100644 --- a/doc/canvas.n +++ b/doc/canvas.n @@ -1189,7 +1189,8 @@ area is off-screen to the top. . This command adjusts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. If \fIwhat\fR is \fBpages\fR then the view adjusts in units of nine-tenths the window's height. diff --git a/doc/listbox.n b/doc/listbox.n index fa24ec7..a047be6 100644 --- a/doc/listbox.n +++ b/doc/listbox.n @@ -435,7 +435,8 @@ way through the listbox, and so on. . This command adjusts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. If \fIwhat\fR is \fBpages\fR then the view adjusts by \fInumber\fR screenfuls. diff --git a/doc/scrollbar.n b/doc/scrollbar.n index 838dac1..fee959d 100644 --- a/doc/scrollbar.n +++ b/doc/scrollbar.n @@ -203,7 +203,7 @@ generated from the scrollbar's \fB\-command\fR option. The command may take any of the following forms. In each case, \fIprefix\fR is the contents of the \fB\-command\fR option, which usually has a form like -.QW \fB.t yview\fR . +.QW "\fB.t yview\fR" . .TP \fIprefix \fBmoveto \fIfraction\fR . @@ -223,7 +223,7 @@ it is slightly less than what fits in the window, so that there is a slight overlap between the old and new views. \fINumber\fR is either 1, which means the next page should become visible, or \-1, which means that the previous page should -become visible. Fractional number are rounded away from 0, so +become visible. Fractional numbers are rounded away from 0, so scrolling 0.001 pages has the same effect as scrolling 1 page. .TP \fIprefix \fBscroll \fInumber \fBunits\fR diff --git a/doc/ttk_widget.n b/doc/ttk_widget.n index 635c782..7605260 100644 --- a/doc/ttk_widget.n +++ b/doc/ttk_widget.n @@ -298,7 +298,8 @@ way through the content appears at the top edge of the window. \fIpathName \fByview scroll \fInumber what\fR This command shifts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. '\" or an abbreviation of one of these, but we don't document that. If \fIwhat\fR is |