@@ -313,6 +313,9 @@ class Event(Generic[_W_co]):
313313 type : EventType
314314 widget : _W_co
315315 delta : int
316+ if sys .version_info >= (3 , 15 ):
317+ detail : str
318+ user_data : str
316319 if sys .version_info >= (3 , 14 ):
317320 def __class_getitem__ (cls , item : Any , / ) -> GenericAlias : ...
318321
@@ -627,6 +630,10 @@ class Misc:
627630 def pack_slaves (self ) -> list [Widget ]: ...
628631 def grid_slaves (self , row : int | None = None , column : int | None = None ) -> list [Widget ]: ...
629632 def place_slaves (self ) -> list [Widget ]: ...
633+ if sys .version_info >= (3 , 15 ):
634+ def pack_content (self ) -> list [Widget ]: ...
635+ def grid_content (self , row : int | None = None , column : int | None = None ) -> list [Widget ]: ...
636+ def place_content (self ) -> list [Widget ]: ...
630637 slaves = pack_slaves
631638 def event_add (self , virtual : str , * sequences : str ) -> None : ...
632639 def event_delete (self , virtual : str , * sequences : str ) -> None : ...
@@ -1103,6 +1110,8 @@ class Pack:
11031110 ) -> None : ...
11041111 def pack_forget (self ) -> None : ...
11051112 def pack_info (self ) -> _PackInfo : ... # errors if widget hasn't been packed
1113+ if sys .version_info >= (3 , 15 ):
1114+ def pack_content (self ) -> list [Widget ]: ...
11061115 pack = pack_configure
11071116 forget = pack_forget
11081117 propagate = Misc .pack_propagate
@@ -1141,6 +1150,8 @@ class Place:
11411150 ) -> None : ...
11421151 def place_forget (self ) -> None : ...
11431152 def place_info (self ) -> _PlaceInfo : ...
1153+ if sys .version_info >= (3 , 15 ):
1154+ def place_content (self ) -> list [Widget ]: ...
11441155 place = place_configure
11451156 info = place_info
11461157
@@ -1178,6 +1189,8 @@ class Grid:
11781189 def grid_forget (self ) -> None : ...
11791190 def grid_remove (self ) -> None : ...
11801191 def grid_info (self ) -> _GridInfo : ...
1192+ if sys .version_info >= (3 , 15 ):
1193+ def grid_content (self , row : int | None = None , column : int | None = None ) -> list [Widget ]: ...
11811194 grid = grid_configure
11821195 location = Misc .grid_location
11831196 size = Misc .grid_size
@@ -3598,19 +3611,55 @@ class Text(Widget, XView, YView):
35983611 ) -> None : ...
35993612 def scan_mark (self , x : int , y : int ) -> None : ...
36003613 def scan_dragto (self , x : int , y : int ) -> None : ...
3601- def search (
3602- self ,
3603- pattern : str ,
3604- index : str | float | _tkinter .Tcl_Obj | Widget ,
3605- stopindex : str | float | _tkinter .Tcl_Obj | Widget | None = None ,
3606- forwards : bool | None = None ,
3607- backwards : bool | None = None ,
3608- exact : bool | None = None ,
3609- regexp : bool | None = None ,
3610- nocase : bool | None = None ,
3611- count : Variable | None = None ,
3612- elide : bool | None = None ,
3613- ) -> str : ... # returns empty string for not found
3614+ if sys .version_info >= (3 , 15 ):
3615+ def search (
3616+ self ,
3617+ pattern : str ,
3618+ index : str | float | _tkinter .Tcl_Obj | Widget ,
3619+ stopindex : str | float | _tkinter .Tcl_Obj | Widget | None = None ,
3620+ forwards : bool | None = None ,
3621+ backwards : bool | None = None ,
3622+ exact : bool | None = None ,
3623+ regexp : bool | None = None ,
3624+ nocase : bool | None = None ,
3625+ count : Variable | None = None ,
3626+ elide : bool | None = None ,
3627+ * ,
3628+ nolinestop : bool | None = None ,
3629+ strictlimits : bool | None = None ,
3630+ ) -> str : ... # returns empty string for not found
3631+ def search_all (
3632+ self ,
3633+ pattern : str ,
3634+ index : str | float | _tkinter .Tcl_Obj | Widget ,
3635+ stopindex : str | float | _tkinter .Tcl_Obj | Widget | None = None ,
3636+ * ,
3637+ forwards : bool | None = None ,
3638+ backwards : bool | None = None ,
3639+ exact : bool | None = None ,
3640+ regexp : bool | None = None ,
3641+ nocase : bool | None = None ,
3642+ count : Variable | None = None ,
3643+ elide : bool | None = None ,
3644+ nolinestop : bool | None = None ,
3645+ overlap : bool | None = None ,
3646+ strictlimits : bool | None = None ,
3647+ ) -> tuple [str , ...]: ...
3648+ else :
3649+ def search (
3650+ self ,
3651+ pattern : str ,
3652+ index : str | float | _tkinter .Tcl_Obj | Widget ,
3653+ stopindex : str | float | _tkinter .Tcl_Obj | Widget | None = None ,
3654+ forwards : bool | None = None ,
3655+ backwards : bool | None = None ,
3656+ exact : bool | None = None ,
3657+ regexp : bool | None = None ,
3658+ nocase : bool | None = None ,
3659+ count : Variable | None = None ,
3660+ elide : bool | None = None ,
3661+ ) -> str : ... # returns empty string for not found
3662+
36143663 def see (self , index : str | float | _tkinter .Tcl_Obj | Widget ) -> None : ...
36153664 def tag_add (
36163665 self , tagName : str , index1 : str | float | _tkinter .Tcl_Obj | Widget , * args : str | float | _tkinter .Tcl_Obj | Widget
0 commit comments