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

Warn user when trying to grid, pack, or place directly into ScrollableFrame #26

Open
UnsignedArduino opened this issue Jun 24, 2021 · 1 comment
Labels
enhancement New feature or request programmer experience This issue affects the programmer's experience with using this library

Comments

@UnsignedArduino
Copy link
Owner

We should print a warning, saying something like:

It seems like you are [GEOMETRY_METHOD]ing into the ScrollableFrame directly, which may not be what you want. Usually, you would [GEOMETRY_METHOD] it into the `frame` attribute of me, so instead of:
my_label = Label(scrollable_frame, ...)
You would do:
my_label = Label(scrollable_frame.frame, ...)

You can turn this warning off by setting disable_warnings to True on me like:
scrollable_frame.disable_warnings = True
@UnsignedArduino UnsignedArduino added the enhancement New feature or request label Jun 24, 2021
@UnsignedArduino
Copy link
Owner Author

If someone can figure out how to hook onto when the programmer grids, packs, or places a widget with the parent as the ScrollableFrame directly instead of the frame attribute, it would be greatly appreciated.

Added the _warn function in 92dfda4.

@UnsignedArduino UnsignedArduino added the programmer experience This issue affects the programmer's experience with using this library label Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request programmer experience This issue affects the programmer's experience with using this library
Projects
None yet
Development

No branches or pull requests

1 participant