pydm
pydm copied to clipboard
Quicker Load times for large pages that use PyDMTabWidget
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.
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?
Hi Jessie,
Its /afs/slac/g/lcls/tools/pydm/display/cryo/cryo_heaters.py.
It loads a related display with new macros. It does not actually use the PyDMTabWidget.
Kind Regards,
Ryan
From: jbellister-slac @.> Sent: Tuesday, May 23, 2023 10:38 AM To: slaclab/pydm @.> Cc: McClanahan, Ryan @.>; Author @.> Subject: Re: [slaclab/pydm] Quicker Load times for large pages that use PyDMTabWidget (Issue #1001)
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?
— Reply to this email directly, view it on GitHubhttps://github.com/slaclab/pydm/issues/1001#issuecomment-1559878489, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWLGB5VEBNS7T5YFBF4OCR3XHTY3FANCNFSM6AAAAAAYMF6D34. You are receiving this because you authored the thread.Message ID: @.***>