Tk Source Code

View Ticket
Login
Ticket UUID: 3602901
Title: Documentation of ttk::frame -padding
Type: Bug Version: None
Submitter: lkppo Created on: 2013-02-01 01:22:31
Subsystem: 88. Themed Tk Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2017-04-17 20:06:53
Resolution: Fixed Closed By: fvogel
    Closed on: 2017-04-17 20:06:53
Description:
If I believe http://www.tkdocs.com/tutorial/widgets.html, the documentation does not specify that it is possible to use multiple values ​​to determine the padding of a ttk::frame widget.

I propose to add the following details to ttk_frame.n manpage:

 - a single number specifies the same padding all the way around;
 - a list of two numbers lets you specify the horizontal then the vertical padding;
 - a list of three numbers lets you specify the left, vertical, and right padding, in that order;
 - a list of four numbers lets you specify the left, top, right and bottom padding, in that order.
User Comments: fvogel added on 2017-04-17 20:06:53:
Merged to core-8-6-branch and trunk.

fvogel added on 2017-04-07 21:25:49:

Done. See [cbd4160c5c].


fvogel added on 2017-04-07 21:02:52:

This fact about -padding is actually documented (perhaps a bit more cryptically than in your report) in the man page for ttk::label.

I have clarified this man page accordingly: [7d128cefcf]

I believe that:

- documentation of -padding should be factorized in the ttk::widget man page
- the same kind of clarification should be done in the man page for -border (in ttk::image)