8000 gh-110746: Improve markup in ``tkinter.ttk.rst`` (#111236) · python/cpython@00d2b6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 00d2b6d

Browse files
akshatgokulblurb-it[bot]ezio-melotti
authored
gh-110746: Improve markup in tkinter.ttk.rst (#111236)
* gh-110746: Improve markup in tkinter.ttk.rst * gh-110746: Improve markup in tkinter.ttk.rst * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
1 parent d074832 commit 00d2b6d

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

Doc/library/tkinter.ttk.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -986,19 +986,19 @@ ttk.Treeview
986986

987987
The valid options/values are:
988988

989-
id
989+
*id*
990990
Returns the column name. This is a read-only option.
991-
anchor: One of the standard Tk anchor values.
991+
*anchor*: One of the standard Tk anchor values.
992992
Specifies how the text in this column should be aligned with respect
993993
to the cell.
994-
minwidth: width
994+
*minwidth*: width
995995
The minimum width of the column in pixels. The treeview widget will
996996
not make the column any smaller than specified by this option when
997997
the widget is resized or the user drags a column.
998-
stretch: ``True``/``False``
998+
*stretch*: ``True``/``False``
999999
Specifies whether the column's width should be adjusted when
10001000
the widget is resized.
1001-
width: width
1001+
*width*: width
10021002
The width of the column in pixels.
10031003

10041004
To configure the tree column, call this with column = "#0"
@@ -1041,14 +1041,14 @@ ttk.Treeview
10411041

10421042
The valid options/values are:
10431043

1044-
text: text
1044+
*text*: text
10451045
The text to display in the column heading.
1046-
image: imageName
1046+
*image*: imageName
10471047
Specifies an image to display to the right of the column heading.
1048-
anchor: anchor
1048+
*anchor*: anchor
10491049
Specifies how the heading text should be aligned. One of the standard
10501050
Tk anchor values.
1051-
command: callback
1051+
*command*: callback
10521052
A callback to be invoked when the heading label is pressed.
10531053

10541054
To configure the tree column heading, call this with column = "#0".
@@ -1573,23 +1573,24 @@ Layouts
15731573
A layout can be just ``None``, if it takes no options, or a dict of
15741574
options specifying how to arrange the element. The layout mechanism
15751575
uses a simplified version of the pack geometry manager: given an
1576-
initial cavity, each element is allocated a parcel. Valid
1577-
options/values are:
1576+
initial cavity, each element is allocated a parcel.
15781577

1579-
side: whichside
1578+
The valid options/values are:
1579+
1580+
*side*: whichside
15801581
Specifies which side of the cavity to place the element; one of
15811582
top, right, bottom or left. If omitted, the element occupies the
15821583
entire cavity.
15831584

1584-
sticky: nswe
1585+
*sticky*: nswe
15851586
Specifies where the element is placed inside its allocated parcel.
15861587

1587-
unit: 0 or 1
1588+
*unit*: 0 or 1
15881589
If set to 1, causes the element and all of its descendants to be treated as
15891590
a single element for the purposes of :meth:`Widget.identify` et al. It's
15901591
used for things like scrollbar thumbs with grips.
15911592

1592-
children: [sublayout... ]
1593+
*children*: [sublayout... ]
15931594
Specifies a list of elements to place inside the element. Each
15941595
element is a tuple (or other sequence type) where the first item is
15951596
the layout name, and the other is a `Layout`_.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved markup for valid options/values for methods ttk.treeview.column and ttk.treeview.heading, and for Layouts.

0 commit comments

Comments
 (0)
0