8000 [3.12] gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236) (… · python/cpython@9c32d02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c32d02

Browse files
miss-islingtonakshatgokulblurb-it[bot]ezio-melotti
authored
[3.12] gh-110746: Improve markup in tkinter.ttk.rst (GH-111236) (#113193)
gh-110746: Improve markup in ``tkinter.ttk.rst`` (GH-111236) * gh-110746: Improve markup in tkinter.ttk.rst * gh-110746: Improve markup in tkinter.ttk.rst * 📜🤖 Added by blurb_it. --------- (cherry picked from commit 00d2b6d) Co-authored-by: Akshat Khandelwal <35228810+akshatgokul@users.noreply.github.com> 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 00324a7 commit 9c32d02

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".
@@ -1515,23 +1515,24 @@ Layouts
15151515
A layout can be just ``None``, if it takes no options, or a dict of
15161516
options specifying how to arrange the element. The layout mechanism
15171517
uses a simplified version of the pack geometry manager: given an
1518-
initial cavity, each element is allocated a parcel. Valid
1519-
options/values are:
1518+
initial cavity, each element is allocated a parcel.
15201519

1521-
side: whichside
1520+
The valid options/values are:
1521+
1522+
*side*: whichside
15221523
Specifies which side of the cavity to place the element; one of
15231524
top, right, bottom or left. If omitted, the element occupies the
15241525
entire cavity.
15251526

1526-
sticky: nswe
1527+
*sticky*: nswe
15271528
Specifies where the element is placed inside its allocated parcel.
15281529

1529-
unit: 0 or 1
1530+
*unit*: 0 or 1
15301531
If set to 1, causes the element and all of its descendants to be treated as
15311532
a single element for the purposes of :meth:`Widget.identify` et al. It's
15321533
used for things like scrollbar thumbs with grips.
15331534

1534-
children: [sublayout... ]
1535+
*children*: [sublayout... ]
15351536
Specifies a list of elements to place inside the element. Each
15361537
element is a tuple (or other sequence type) where the first item is
15371538
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