ccu.fancyplots._gui.mechanism¶
GUI elements for defining reaction mechanisms.
Specifically, this module defines the StepPanel, PathPanel,
and MechanismSection classes.
- class ccu.fancyplots._gui.mechanism.MechanismSection(parent: FancyPlotsGUI, *args, **kwargs)[source]¶
Bases:
Labelframe,UpdatableFrameGUI element for specifying mechanism free energies.
- Variables:
parent – The running
root.FancyPlotsGUIinstance.step_panel – A
ttk.LabelFramefor defining the names of mechanism steps.path_panel – A
ttk.LabelFramefor defining the number of pathways.gibbs_button – A
ttk.Buttonfor launching theEnergyWindow.
Create a subpanel for defining a reaction mechanism.
- Parameters:
parent – The containing
mechanism.MechanismSection.*args – Positional arguments for
ttk.LabelFrame.**kwargs – Keyword arguments for
ttk.LabelFrame.
- _abc_impl = <_abc._abc_data object>¶
- _is_protocol = False¶
- class ccu.fancyplots._gui.mechanism.PathPanel(parent: MechanismSection, *args, **kwargs)[source]¶
Bases:
LabelframeDefine the number of pathways.
- Variables:
parent – The parent
ccu.fancyplots._gui.mechanism.MechanismSection.spinbox – The
tkinter.Spinboxused to define the number of pathways.var – The
tkinter.IntVarfor thetkinter.Spinbox.
Create a subpanel for defining the number of mechanism pathways.
- Parameters:
parent – The containing
mechanism.MechanismSection.*args – Positional arguments for
ttk.LabelFrame.**kwargs – Keyword arguments for
ttk.LabelFrame.
- class ccu.fancyplots._gui.mechanism.StepPanel(parent: MechanismSection, *args, **kwargs)[source]¶
Bases:
LabelframeDefine the name and number of mechanism steps.
Note that step names are stripped of all surrounding whitespace.
- Variables:
entry – The
ttk.Entryused to define mechanism steps.parent – The parent
ccu.fancyplots._gui.mechanism.MechanismSection.var – The
tkinter.StringVarfor thettk.Entry.
Create a subpanel for defining the mechanism steps.
- Parameters:
parent – The containing
mechanism.MechanismSection.*args – Positional arguments for
ttk.LabelFrame.**kwargs – Keyword arguments for
ttk.LabelFrame.