ccu.fancyplots._gui.formatting¶
GUI elements for defining plot formatting parameters.
This module defines the FormattingSection class.
- class ccu.fancyplots._gui.formatting.FormattingSection(parent: FancyPlotsGUI, *args, parameters: FormattingParameters | None = None, **kwargs)[source]¶
Bases:
Labelframe,UpdatableFrameA
ttk.LabelFramecontaining all formatting parameters.Note that instances of this class are listeners for the custom <Validate> event emitted by
frames.FancyFormatFrameinstances.- Variables:
parent – The
root.FancyPlotsGUI.formatting_parameters – A
data.FormattingParametersinstance mapping the names of formatting parameters to their values. Defaults to a copy ofdata.DEFAULT_PARAMETERS.frames – A list of
FancyFormatFrameinstances in which the formatting parameters are set.
Create a section for specifying plot formatting parameters.
- Parameters:
parent – The running
root.FancyPlotsGUIinstance.*args – Positional arguments for
tkinter.Toplevel.parameters – A
formatting.FormattingParametersdictionary mapping parameter names to their values. Defauls toDEFAULT_PARAMETERS.**kwargs – Keyword arguments fo
tkinter.Toplevel.
- _abc_impl = <_abc._abc_data object>¶
- _is_protocol = False¶
- initialize_frames() list[FancyFormatFrame][source]¶
Create
ttk.LabelFramewidgets for setting formatting parameters.- Returns:
A list of
FancyFormatFramewidgets used to set formatting parameters.- Raises:
NotImplementedError – Unsupported annotation type for formatting
parameter. Only annotated type hints are supported. –