utils

General utility functions.

Functions:

collapse_label(text[, collapsed])

Constructs the label to display on a collapsible section.

coming_soon([msg])

Displays a message box informing the user that the desired feature has not been implemented.

generate_faces()

Returns a platform dependent set of typefaces.

toggle(control)

Toggle value of the given control.

collapse_label(text, collapsed=True)[source]

Constructs the label to display on a collapsible section.

Parameters
  • text (str) – The text of the label.

  • collapsed (bool) – Whether the section is collapsed. Default True.

Return type

str

coming_soon(msg='This feature has not been implemented yet')[source]

Displays a message box informing the user that the desired feature has not been implemented.

Parameters

msg (str) – The message to display. Default 'This feature has not been implemented yet'.

generate_faces()[source]

Returns a platform dependent set of typefaces.

Return type

Dict[str, Any]

toggle(control)[source]

Toggle value of the given control.

Usually used for checkboxes.

Parameters

control (CheckBox)

Return type

bool