Hi,
I am writing a simple GUI with a VStack containing 3 CollapsableFrame. My problem is that when I collapse the frame it basically just hides the components inside put keeps taking the place it usually occupies, meaning the components below it don’t move up. I would like to have a behavior similar to how the different section in the Property window work when collapsed/expanded.
This is my GUI code:
with self._window.frame:
with ui.VStack(spacing=6):
with ui.CollapsableFrame("Load PC"):
with ui.Frame():
self.file_browser_menu.build_ui()
with ui.CollapsableFrame("Object Detection"):
with ui.Frame():
self.object_detection_menu.build_ui()
with ui.CollapsableFrame("Pose Estimation"):
with ui.Frame():
self.pose_estimation_menu.build_ui()