Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Proposal:
Add the argument**kw to the methodafter so that the keyword argument can passed tofunc Conveniently.
The current function definition of theafter is as follows:
defafter(self,ms,func=None,*args): ...
If we have the argument**kw, we can do this:
importtkinterroot=tkinter.Tk()root.after(1000,root.configure,bg="red")root.mainloop()
Otherwise, we may need something like this:
importtkinterroot=tkinter.Tk()root.after(1000,lambda:root.configure(bg="red"))root.mainloop()
Obviously, thelambda 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