Closed ritch closed 4 months ago
The changes in fiftyone/operators/types.py
introduce new methods and classes to define and display various UI elements such as horizontal and vertical stacks, menus, and button groups. These additions enhance the module's ability to configure and present UI components, improving the overall user interface design capabilities.
Files | Change Summary |
---|---|
fiftyone/operators/types.py |
Added methods h_stack , v_stack , menu , and btn_group for defining UI elements. Introduced classes HStackView , VStackView , ButtonGroupView , and MenuView to support these elements with specific display configurations. |
sequenceDiagram
participant User
participant UIManager
participant HStackView
participant VStackView
participant ButtonGroupView
participant MenuView
User->>UIManager: Request to create UI elements
UIManager->>HStackView: Create Horizontal Stack
UIManager->>VStackView: Create Vertical Stack
UIManager->>ButtonGroupView: Create Button Group
UIManager->>MenuView: Create Menu
HStackView-->>UIManager: Horizontal Stack created
VStackView-->>UIManager: Vertical Stack created
ButtonGroupView-->>UIManager: Button Group created
MenuView-->>UIManager: Menu created
UIManager-->>User: UI elements created successfully
In the land of code where changes bloom,
New stacks and menus fill the room.
Buttons group and views align,
Enhancing UI, refined by design.
With joy we cheer, a rabbit's delight,
Forfiftyone
's UI shines so bright!
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Adds several utilities for layout in python panels.
Summary by CodeRabbit
HStackView
,VStackView
,ButtonGroupView
, andMenuView
classes for enhanced UI element display configurations.