exatomic.widgets.widget_utils module

Widget Utilities

Widget layout and structure.

class exatomic.widgets.widget_utils.Folder(**kwargs: Any)[source]

Bases: VBox

A VBox that shows and hides widgets. For proper indentation, instantiate sub-folders before passing to super-folders. Should not exist outside of a GUI box.

activate(*keys, **kwargs)[source]

Activate (show) widgets that are not disabled.

deactivate(*keys, **kwargs)[source]

Deactivate (hide) widgets.

insert(idx, key, obj, active=True, update=False)[source]

Insert widget into Folder, behaves as list.insert .

update(objs, relayout=False)[source]

Update the Folder widgets, behaves as dict.update.

move_to_end(*keys)[source]

Move widget(s) to the end of the folder.

pop(key)[source]

Pop a widget from the folder.

class exatomic.widgets.widget_utils.GUIBox(**kwargs: Any)[source]

Bases: VBox

exatomic.widgets.widget_utils.gui_field_widgets(uni=False, test=False)[source]

Return new widgets for field GUI functionality.