finish types of tkinter.Menu (#5583)

This commit is contained in:
Akuli
2021-06-06 20:15:37 +03:00
committed by GitHub
parent 746db19c3f
commit 6159136006

View File

@@ -1841,10 +1841,10 @@ class Menu(Widget):
@overload
def configure(self, cnf: str) -> Tuple[str, str, str, Any, Any]: ...
config = configure
def tk_popup(self, x: int, y: int, entry: _MenuIndex = ...): ...
def activate(self, index): ...
def add(self, itemType, cnf=..., **kw): ...
def insert(self, index, itemType, cnf=..., **kw): ...
def tk_popup(self, x: int, y: int, entry: _MenuIndex = ...) -> None: ...
def activate(self, index: _MenuIndex) -> None: ...
def add(self, itemType, cnf=..., **kw): ... # docstring says "Internal function."
def insert(self, index, itemType, cnf=..., **kw): ... # docstring says "Internal function."
def add_cascade(
self,
cnf: Optional[Dict[str, Any]] = ...,
@@ -2035,17 +2035,19 @@ class Menu(Widget):
variable: Variable = ...,
) -> None: ...
def insert_separator(self, index: _MenuIndex, cnf: Optional[Dict[str, Any]] = ..., *, background: _Color = ...) -> None: ...
def delete(self, index1, index2: Optional[Any] = ...): ...
def entrycget(self, index, option): ...
def entryconfigure(self, index, cnf: Optional[Any] = ..., **kw): ...
entryconfig: Any
def index(self, index): ...
def invoke(self, index): ...
def post(self, x, y): ...
def type(self, index): ...
def unpost(self): ...
def xposition(self, index): ...
def yposition(self, index): ...
def delete(self, index1: _MenuIndex, index2: _MenuIndex | None = ...) -> None: ...
def entrycget(self, index: _MenuIndex, option: str) -> Any: ...
def entryconfigure(
self, index: _MenuIndex, cnf: dict[str, Any] | None = ..., **kw: Any
) -> dict[str, Tuple[str, str, str, Any, Any]] | None: ...
entryconfig = entryconfigure
def index(self, index: _MenuIndex) -> int | None: ...
def invoke(self, index: _MenuIndex) -> Any: ...
def post(self, x: int, y: int) -> None: ...
def type(self, index: _MenuIndex) -> Literal["cascade", "checkbutton", "command", "radiobutton", "separator"]: ...
def unpost(self) -> None: ...
def xposition(self, index: _MenuIndex) -> int: ...
def yposition(self, index: _MenuIndex) -> int: ...
class Menubutton(Widget):
def __init__(