Message397211
I agree with Akuli that raising a KeyError is not expected behaviour (combined with the fact this is caught elsewhere), and therefore is probably a regression.
While we could use `winfo class` to determine the type of Tk widget, this would probably require a reasonably sized refactor of tkinter (and we would still need to support cases when it's a type we don't know). Therefore, I think returning `None` is the best solution.
Akuli, would you like to create a pull request for this? |
|
Date |
User |
Action |
Args |
2021-07-09 19:44:29 | epaine | set | recipients:
+ epaine, serhiy.storchaka, Akuli |
2021-07-09 19:44:29 | epaine | set | messageid: <1625859869.24.0.454015609102.issue44592@roundup.psfhosted.org> |
2021-07-09 19:44:29 | epaine | link | issue44592 messages |
2021-07-09 19:44:29 | epaine | create | |
|