Feature or enhancement
Proposal:
Add the argument **kw to the method after so that the keyword argument can passed to func Conveniently.
The current function definition of the after is as follows:
def after(self, ms, func=None, *args): ...
If we have the argument **kw, we can do this:
import tkinter
root = tkinter.Tk()
root.after(1000, root.configure, bg="red")
root.mainloop()
Otherwise, we may need something like this:
import tkinter
root = tkinter.Tk()
root.after(1000, lambda: root.configure(bg="red"))
root.mainloop()
Obviously, the lambda here looks a bit redundant.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
Feature or enhancement
Proposal:
Add the argument
**kwto the methodafterso that the keyword argument can passed tofuncConveniently.The current function definition of the
afteris as follows:If we have the argument
**kw, we can do this:Otherwise, we may need something like this:
Obviously, the
lambdahere looks a bit redundant.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
**kwtotkinter.Misc.afterandtkinter.Misc.after_idle#126900