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

Quicker Load times for large pages that use PyDMTabWidget #1001

Open
Ryan-McClanahan opened this issue May 23, 2023 · 2 comments
Open

Quicker Load times for large pages that use PyDMTabWidget #1001

Ryan-McClanahan opened this issue May 23, 2023 · 2 comments
Labels

Comments

@Ryan-McClanahan
Copy link
Contributor

What's the problem this feature will solve?

I think that the PyDMTabWidget loads all the widgets on each tab upon launching the page. This is fine for tabs with a low amount of widgets used. It slows down load times for pages that contain a large amount of widgets in their tabs. It would be nice if there was an option to load the widgets on tabs when the tab is clicked, rather than on launch. This would quicken load times for pages, and make pages with nested tabs more viable. Currently pages with nested tabs can crash designer if there are too many widgets on the nested tabs.

There is currently a way around this using code. However, it would be nice to not have to use a .py file in addition to a .ui file for this functionality. And it would make building larger pages more accessible as they could be purely built in designer.

@jbellister-slac
Copy link
Collaborator

That would be nice functionality to have through designer. Could you point me to what the workaround you have using python code is to see if it's something that could be a start for updating how loading tab widgets in ui files works?

@Ryan-McClanahan
Copy link
Contributor Author

Ryan-McClanahan commented May 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants