How to implement lazy loading with ScrollableFrame? #2408
Unanswered
danyaislearning
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Making a saving/displaying bookmarks feature for an app.
Bookmarks themselves are CTkFrames which are dynamically created/destroyed depending on user input. They are stored in a CTkScrollableFrame.
Right now when opening "bookmarks" menu, app loads all of them at once. This is not a problem with only a few widgets, but starts significantly impacting performance and load times with 50,100 or more widgets.
At this point I see 2 solutions:
Problem with the first one is it will eventually load all of the widgets, and if there is a lot of them it will tank the performance.
So second it is.
I couldn't find a way to check what widgets are currently visible (on screen) — if there is a way to actually get the only visible widgets, please let me know.
So without that right now my idea is:
It feels like there should be a better way to do this, I'm missing something
Beta Was this translation helpful? Give feedback.
All reactions