Skip to content

Commit f4bef2f

Browse files
authored
tkinter: Delete pack_content from Pack and similarly place_content and grid_content (#15767)
1 parent 38f334e commit f4bef2f

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ profiling.sampling.module_utils
183183
profiling.sampling.opcode_utils
184184
profiling.sampling.sample
185185

186-
# These conflicting aliases are just like tkinter.*.slaves in common.txt.
186+
# These aliases are just like the aliases named "slaves" instead of "content".
187+
# See common.txt.
187188
tkinter.Grid.content
189+
tkinter.Grid.grid_content
188190
tkinter.Pack.content
191+
tkinter.Pack.pack_content
189192
tkinter.Place.content
193+
tkinter.Place.place_content

stdlib/tkinter/__init__.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,6 @@ class Pack:
11121112
) -> None: ...
11131113
def pack_forget(self) -> None: ...
11141114
def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been packed
1115-
if sys.version_info >= (3, 15):
1116-
def pack_content(self) -> list[Widget]: ...
11171115
pack = pack_configure
11181116
forget = pack_forget
11191117
propagate = Misc.pack_propagate
@@ -1152,8 +1150,6 @@ class Place:
11521150
) -> None: ...
11531151
def place_forget(self) -> None: ...
11541152
def place_info(self) -> _PlaceInfo: ...
1155-
if sys.version_info >= (3, 15):
1156-
def place_content(self) -> list[Widget]: ...
11571153
place = place_configure
11581154
info = place_info
11591155

@@ -1191,8 +1187,6 @@ class Grid:
11911187
def grid_forget(self) -> None: ...
11921188
def grid_remove(self) -> None: ...
11931189
def grid_info(self) -> _GridInfo: ...
1194-
if sys.version_info >= (3, 15):
1195-
def grid_content(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
11961190
grid = grid_configure
11971191
location = Misc.grid_location
11981192
size = Misc.grid_size

0 commit comments

Comments
 (0)