tkinter: more winfo_foo methods (#4911)

This commit is contained in:
Akuli
2021-01-06 12:54:16 +02:00
committed by GitHub
parent 0c2d25871c
commit effd7c53fa

View File

@@ -22,7 +22,6 @@ EXCEPTION = _tkinter.EXCEPTION
# Quick guide for figuring out which widget class to choose:
# - Misc: any widget (don't use BaseWidget because Tk doesn't inherit from BaseWidget)
# - Widget: anything that is meant to be put into another widget with e.g. pack or grid
# - Wm: a toplevel window, Tk or Toplevel
#
# Instructions for figuring out the correct type of each widget option:
# - See discussion on #4363.
@@ -253,7 +252,7 @@ class Misc:
# after_idle is essentially partialmethod(after, "idle")
def after_idle(self, func: Callable[..., Any], *args: Any) -> str: ...
def after_cancel(self, id: str) -> None: ...
def bell(self, displayof: int = ...): ...
def bell(self, displayof: Union[Literal[0], Misc, None] = ...): ...
def clipboard_get(self, **kw): ...
def clipboard_clear(self, **kw): ...
def clipboard_append(self, string, **kw): ...
@@ -275,48 +274,48 @@ class Misc:
def lower(self, belowThis: Optional[Any] = ...): ...
def tkraise(self, aboveThis: Optional[Any] = ...): ...
lift: Any
def winfo_atom(self, name, displayof: int = ...): ...
def winfo_atomname(self, id, displayof: int = ...): ...
def winfo_cells(self): ...
def winfo_children(self): ...
def winfo_class(self): ...
def winfo_colormapfull(self): ...
def winfo_containing(self, rootX, rootY, displayof: int = ...): ...
def winfo_depth(self): ...
def winfo_exists(self): ...
def winfo_atom(self, name: str, displayof: Union[Literal[0], Misc, None] = ...): ...
def winfo_atomname(self, id: int, displayof: Union[Literal[0], Misc, None] = ...): ...
def winfo_cells(self) -> int: ...
def winfo_children(self) -> List[Widget]: ... # Widget because it can't be Toplevel or Tk
def winfo_class(self) -> str: ...
def winfo_colormapfull(self) -> bool: ...
def winfo_containing(self, rootX: int, rootY: int, displayof: Union[Literal[0], Misc, None] = ...) -> Optional[Misc]: ...
def winfo_depth(self) -> int: ...
def winfo_exists(self) -> bool: ...
def winfo_fpixels(self, number: _ScreenUnits) -> float: ...
def winfo_geometry(self): ...
def winfo_geometry(self) -> str: ...
def winfo_height(self) -> int: ...
def winfo_id(self): ...
def winfo_interps(self, displayof: int = ...): ...
def winfo_ismapped(self): ...
def winfo_manager(self): ...
def winfo_name(self): ...
def winfo_parent(self): ...
def winfo_pathname(self, id, displayof: int = ...): ...
def winfo_id(self) -> int: ...
def winfo_interps(self, displayof: Union[Literal[0], Misc, None] = ...) -> Tuple[str, ...]: ...
def winfo_ismapped(self) -> bool: ...
def winfo_manager(self) -> str: ...
def winfo_name(self) -> str: ...
def winfo_parent(self) -> str: ... # return value needs nametowidget()
def winfo_pathname(self, id: int, displayof: Union[Literal[0], Misc, None] = ...): ...
def winfo_pixels(self, number: _ScreenUnits) -> int: ...
def winfo_pointerx(self) -> int: ...
def winfo_pointerxy(self) -> Tuple[int, int]: ...
def winfo_pointery(self) -> int: ...
def winfo_reqheight(self) -> int: ...
def winfo_reqwidth(self) -> int: ...
def winfo_rgb(self, color): ...
def winfo_rgb(self, color: _Color) -> Tuple[int, int, int]: ...
def winfo_rootx(self) -> int: ...
def winfo_rooty(self) -> int: ...
def winfo_screen(self): ...
def winfo_screencells(self): ...
def winfo_screendepth(self): ...
def winfo_screen(self) -> str: ...
def winfo_screencells(self) -> int: ...
def winfo_screendepth(self) -> int: ...
def winfo_screenheight(self) -> int: ...
def winfo_screenmmheight(self) -> int: ...
def winfo_screenmmwidth(self) -> int: ...
def winfo_screenvisual(self): ...
def winfo_screenvisual(self) -> str: ...
def winfo_screenwidth(self) -> int: ...
def winfo_server(self): ...
def winfo_toplevel(self): ...
def winfo_viewable(self): ...
def winfo_visual(self): ...
def winfo_visualid(self): ...
def winfo_visualsavailable(self, includeids: int = ...): ...
def winfo_server(self) -> str: ...
def winfo_toplevel(self) -> Union[Tk, Toplevel]: ...
def winfo_viewable(self) -> bool: ...
def winfo_visual(self) -> str: ...
def winfo_visualid(self) -> str: ...
def winfo_visualsavailable(self, includeids: int = ...) -> List[Tuple[str, int]]: ...
def winfo_vrootheight(self) -> int: ...
def winfo_vrootwidth(self) -> int: ...
def winfo_vrootx(self) -> int: ...