Keep widget theme metadata synchronized when width or height are changed via configure#17
Keep widget theme metadata synchronized when width or height are changed via configure#17ajkessel wants to merge 1 commit into
Conversation
|
Unfortunately, it doesn't work for widgets that inherit from another widget rather than directly from The perfect solution would be to modify all cget() methods from: to I'll do it in the next commit. |
|
That makes sense. I think your fix will also cover the next failure I encountered with the pytest conversion work: Since |
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 keeps widget theme metadata synchronized when width or height are changed via configure(). This fixes cget("width") / cget("height") returning stale constructor or theme defaults for widgets like CTkButton, CTkLabel, CTkFrame, and CTkEntry after resizing.