Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolkit_tk Frame replacement leaves invalid ctl in f_controls #2

Open
loehnertj opened this issue Jun 29, 2020 · 1 comment
Open

toolkit_tk Frame replacement leaves invalid ctl in f_controls #2

loehnertj opened this issue Jun 29, 2020 · 1 comment

Comments

@loehnertj
Copy link
Owner

replace Panel in f_controls as well

@loehnertj
Copy link
Owner Author

loehnertj commented May 21, 2021

Not so simple :-( replacement happens within Toolkit.setval, which knows nothing about AutoFrame's f_control dict. OTOH, AutoFrame passes on the value without knowing that a widget is being replaced.
Probably need to modify setval()'s signature to have some way of telling caller about widget changes...
More generically, if the user builds own controls and attaches them somewhere, f_controls gets out of sync. What to do...?

loehnertj added a commit that referenced this issue May 21, 2021
loehnertj added a commit that referenced this issue May 21, 2021
only works on TKinter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant