Skip to content

Commit ca983cd

Browse files
authored
Allow empty strings for show in tkinter.ttk.Treeview (#6135)
1 parent ee31999 commit ca983cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/tkinter/ttk.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
933933
#
934934
# 'tree headings' is same as ['tree', 'headings'], and I wouldn't be
935935
# surprised if someone was using it.
936-
show: Literal["tree", "headings", "tree headings"] | tkinter._TkinterSequence[str] = ...,
936+
show: Literal["tree", "headings", "tree headings", ""] | tkinter._TkinterSequence[str] = ...,
937937
style: str = ...,
938938
takefocus: tkinter._TakeFocusValue = ...,
939939
xscrollcommand: tkinter._XYScrollCommand = ...,
@@ -950,7 +950,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
950950
height: int = ...,
951951
padding: tkinter._Padding = ...,
952952
selectmode: Literal["extended", "browse", "none"] = ...,
953-
show: Literal["tree", "headings", "tree headings"] | tkinter._TkinterSequence[str] = ...,
953+
show: Literal["tree", "headings", "tree headings", ""] | tkinter._TkinterSequence[str] = ...,
954954
style: str = ...,
955955
takefocus: tkinter._TakeFocusValue = ...,
956956
xscrollcommand: tkinter._XYScrollCommand = ...,

0 commit comments

Comments
 (0)