mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-18 03:51:24 +08:00
tkinter: Require passing in a callback function to .after() (#11013)
This commit is contained in:
1 parent
cc0b41a994
commit
cad0c04ec0
2 files changed
+3
-3
No files matched your search
@@ -347,9 +347,8 @@ class Misc:
|
||||
def tk_focusFollowsMouse(self) -> None: ...
|
||||
def tk_focusNext(self) -> Misc | None: ...
|
||||
def tk_focusPrev(self) -> Misc | None: ...
|
||||
@overload
|
||||
def after(self, ms: int, func: None = None) -> None: ...
|
||||
@overload
|
||||
# .after() can be called without the "func" argument, but it is basically never what you want.
|
||||
# It behaves like time.sleep() and freezes the GUI app.
|
||||
def after(self, ms: int | Literal["idle"], func: Callable[..., object], *args: Any) -> str: ...
|
||||
# after_idle is essentially partialmethod(after, "idle")
|
||||
def after_idle(self, func: Callable[..., object], *args: Any) -> str: ...
|
||||
|
||||
Reference in new issue
Block a user