Restores Tk-compatible bg and background aliases for CTk.configure#16
Restores Tk-compatible bg and background aliases for CTk.configure#16ajkessel wants to merge 2 commits into
Conversation
|
Why would you need this?
When I moved the constructor arguments to dedicated TypedDict classes, I looked for a way to specify that the cget() method can accept only keys of the TypedDict (something similar to |
|
OK, that makes sense. I treated this as a compatibility regression because the legacy unit test from customtkinter used I agree that adding I’ll close this PR shortly and update the pytest updates I'm working through to stop asserting |
I've started running this code through updated unit tests based on my https://github.com/ajkessel/Custom2kinter/tree/m1-test-foundation branch. I will eventually propose those branch as a PR, but first I wanted to get some fixes through that the unit tests have surfaced.
This PR restores Tk-compatible bg and background aliases for CTk.configure(). These now route through the existing fg_color handling path, so cget("fg_color"), cget("bg"), appearance-mode color application, and child color propagation stay consistent.