Removed bbox comment in Misc (#4892)

This commit is contained in:
melassa
2021-01-02 19:57:16 +01:00
committed by GitHub
parent 3c26c7221c
commit 2ab1b03a5b
2 changed files with 3 additions and 4 deletions

View File

@@ -388,8 +388,7 @@ class Misc:
def grid_bbox(self, column: int, row: int, col2: None = ..., row2: None = ...) -> Optional[Tuple[int, int, int, int]]: ...
@overload
def grid_bbox(self, column: int, row: int, col2: int, row2: int) -> Optional[Tuple[int, int, int, int]]: ...
# commented out to avoid conflicting with other bbox methods
# bbox = grid_bbox
bbox = grid_bbox
def grid_columnconfigure(self, index, cnf=..., **kw): ... # TODO
def grid_rowconfigure(self, index, cnf=..., **kw): ... # TODO
columnconfigure = grid_columnconfigure
@@ -2655,7 +2654,7 @@ class Text(Widget, XView, YView):
def configure(self, cnf: _TextOptionName) -> Tuple[str, str, str, Any, Any]: ...
config = configure
def cget(self, key: _TextOptionName) -> Any: ...
def bbox(self, index: _TextIndex) -> Optional[Tuple[int, int, int, int]]: ...
def bbox(self, index: _TextIndex) -> Optional[Tuple[int, int, int, int]]: ... # type: ignore
def compare(self, index1: _TextIndex, op: Literal["<", "<=", "==", ">=", ">", "!="], index2: _TextIndex) -> bool: ...
def count(self, index1, index2, *args): ... # TODO
@overload

View File

@@ -1150,7 +1150,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
def configure(self, cnf: _TreeviewOptionName) -> Tuple[str, str, str, Any, Any]: ...
config = configure
def cget(self, key: _TreeviewOptionName) -> Any: ...
def bbox(self, item, column: Optional[Any] = ...): ...
def bbox(self, item, column: Optional[Any] = ...): ... # type: ignore
def get_children(self, item: Optional[Any] = ...): ...
def set_children(self, item, *newchildren): ...
def column(self, column, option: Optional[Any] = ..., **kw): ...