mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
tkinter: get rid of unnecessary Incomplete (#8471)
This commit is contained in:
@@ -1131,7 +1131,7 @@ class Canvas(Widget, XView, YView):
|
||||
insertontime: int = ...,
|
||||
insertwidth: _ScreenUnits = ...,
|
||||
name: str = ...,
|
||||
offset: Incomplete = ..., # undocumented
|
||||
offset=..., # undocumented
|
||||
relief: _Relief = ...,
|
||||
# Setting scrollregion to None doesn't reset it back to empty,
|
||||
# but setting it to () does.
|
||||
@@ -1170,7 +1170,7 @@ class Canvas(Widget, XView, YView):
|
||||
insertofftime: int = ...,
|
||||
insertontime: int = ...,
|
||||
insertwidth: _ScreenUnits = ...,
|
||||
offset: Incomplete = ..., # undocumented
|
||||
offset=..., # undocumented
|
||||
relief: _Relief = ...,
|
||||
scrollregion: tuple[_ScreenUnits, _ScreenUnits, _ScreenUnits, _ScreenUnits] | tuple[()] = ...,
|
||||
selectbackground: _Color = ...,
|
||||
|
||||
@@ -44,7 +44,7 @@ class FileDialog:
|
||||
self, master, title: Incomplete | None = ...
|
||||
) -> None: ... # title is usually a str or None, but e.g. int doesn't raise en exception either
|
||||
how: Incomplete | None
|
||||
def go(self, dir_or_file: Incomplete = ..., pattern: str = ..., default: str = ..., key: Incomplete | None = ...): ...
|
||||
def go(self, dir_or_file=..., pattern: str = ..., default: str = ..., key: Incomplete | None = ...): ...
|
||||
def quit(self, how: Incomplete | None = ...) -> None: ...
|
||||
def dirs_double_event(self, event) -> None: ...
|
||||
def dirs_select_event(self, event) -> None: ...
|
||||
|
||||
@@ -78,7 +78,7 @@ class Button(Widget):
|
||||
default: Literal["normal", "active", "disabled"] = ...,
|
||||
image: tkinter._ImageSpec = ...,
|
||||
name: str = ...,
|
||||
padding: Incomplete = ..., # undocumented
|
||||
padding=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -97,7 +97,7 @@ class Button(Widget):
|
||||
cursor: tkinter._Cursor = ...,
|
||||
default: Literal["normal", "active", "disabled"] = ...,
|
||||
image: tkinter._ImageSpec = ...,
|
||||
padding: Incomplete = ...,
|
||||
padding=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -124,7 +124,7 @@ class Checkbutton(Widget):
|
||||
name: str = ...,
|
||||
offvalue: Any = ...,
|
||||
onvalue: Any = ...,
|
||||
padding: Incomplete = ..., # undocumented
|
||||
padding=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -148,7 +148,7 @@ class Checkbutton(Widget):
|
||||
image: tkinter._ImageSpec = ...,
|
||||
offvalue: Any = ...,
|
||||
onvalue: Any = ...,
|
||||
padding: Incomplete = ...,
|
||||
padding=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -257,7 +257,7 @@ class Combobox(Entry):
|
||||
justify: Literal["left", "center", "right"] = ...,
|
||||
name: str = ...,
|
||||
postcommand: Callable[[], object] | str = ...,
|
||||
show: Incomplete = ..., # undocumented
|
||||
show=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -282,7 +282,7 @@ class Combobox(Entry):
|
||||
invalidcommand: tkinter._EntryValidateCommand = ...,
|
||||
justify: Literal["left", "center", "right"] = ...,
|
||||
postcommand: Callable[[], object] | str = ...,
|
||||
show: Incomplete = ...,
|
||||
show=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -310,7 +310,7 @@ class Combobox(Entry):
|
||||
invalidcommand: tkinter._EntryValidateCommand = ...,
|
||||
justify: Literal["left", "center", "right"] = ...,
|
||||
postcommand: Callable[[], object] | str = ...,
|
||||
show: Incomplete = ...,
|
||||
show=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -478,7 +478,7 @@ class Menubutton(Widget):
|
||||
image: tkinter._ImageSpec = ...,
|
||||
menu: tkinter.Menu = ...,
|
||||
name: str = ...,
|
||||
padding: Incomplete = ..., # undocumented
|
||||
padding=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -497,7 +497,7 @@ class Menubutton(Widget):
|
||||
direction: Literal["above", "below", "left", "right", "flush"] = ...,
|
||||
image: tkinter._ImageSpec = ...,
|
||||
menu: tkinter.Menu = ...,
|
||||
padding: Incomplete = ...,
|
||||
padding=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -547,7 +547,7 @@ class Notebook(Widget):
|
||||
sticky: str = ..., # consists of letters 'n', 's', 'w', 'e', no repeats, may be empty
|
||||
padding: tkinter._Padding = ...,
|
||||
text: str = ...,
|
||||
image: Incomplete = ..., # Sequence of an image name, followed by zero or more (sequences of one or more state names followed by an image name)
|
||||
image=..., # Sequence of an image name, followed by zero or more (sequences of one or more state names followed by an image name)
|
||||
compound: tkinter._Compound = ...,
|
||||
underline: int = ...,
|
||||
) -> None: ...
|
||||
@@ -663,7 +663,7 @@ class Radiobutton(Widget):
|
||||
cursor: tkinter._Cursor = ...,
|
||||
image: tkinter._ImageSpec = ...,
|
||||
name: str = ...,
|
||||
padding: Incomplete = ..., # undocumented
|
||||
padding=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -683,7 +683,7 @@ class Radiobutton(Widget):
|
||||
compound: _TtkCompound = ...,
|
||||
cursor: tkinter._Cursor = ...,
|
||||
image: tkinter._ImageSpec = ...,
|
||||
padding: Incomplete = ...,
|
||||
padding=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -870,7 +870,7 @@ class Spinbox(Entry):
|
||||
invalidcommand: tkinter._EntryValidateCommand = ..., # undocumented
|
||||
justify: Literal["left", "center", "right"] = ..., # undocumented
|
||||
name: str = ...,
|
||||
show: Incomplete = ..., # undocumented
|
||||
show=..., # undocumented
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
@@ -899,7 +899,7 @@ class Spinbox(Entry):
|
||||
increment: float = ...,
|
||||
invalidcommand: tkinter._EntryValidateCommand = ...,
|
||||
justify: Literal["left", "center", "right"] = ...,
|
||||
show: Incomplete = ...,
|
||||
show=...,
|
||||
state: str = ...,
|
||||
style: str = ...,
|
||||
takefocus: tkinter._TakeFocusValue = ...,
|
||||
|
||||
Reference in New Issue
Block a user