Widget Development

This subtree contains developer documentation for creating new widgets and including them in the library.

Why would I add a widget?

Before starting, consider why you might add a widget to pcdswidgets. Some good reasons may be:

  • Making a particularly useful or ubiquitous widget globally available and discoverable

  • Making a high-usage widget easier to add to screens and control the settings of

The alternative is to pass your widget around via filepath and macros using PyDMEmbeddedDisplay, which works great and may be sufficient for many use cases.

Documenting a Widget

All widgets need an entry in the Widget Catalog and an entry for their module in the Widget Development subtree.

Creating a Widget