Utilities
Counter
Classes to do some automatic counting and filling.
- class omc3_gui.utils.counter.Counter(start=0, end=None)[source]
Simple class to count up integers. Similar to itertools.count
- class omc3_gui.utils.counter.HorizontalGridLayoutFiller(layout: QtWidgets.QGridLayout, cols: int, rows: int = None)[source]
Fills a grid-layout with widgets, without having to give row and col positions, but allows giving a col-span.
Iterable Classes
This module contains classes that are or make other classes iterable over their attributes.
- class omc3_gui.utils.iteration_classes.IterableAttributeItems[source]
Makes the class itself iterable over its attribute name and values.
- class omc3_gui.utils.iteration_classes.IterableAttributeNames[source]
Makes the class itself iterable over its attribute names.
- class omc3_gui.utils.iteration_classes.IterableAttributeValues[source]
Makes the class itself iterable over its attribute values.
Logging
Helper functions for logging.
- omc3_gui.utils.log_handler.init_logging(level: int | None = None)[source]
Set up a basic logger.