Source code for mopac_step.lewis_structure_step
# -*- coding: utf-8 -*-
"""Main module."""
import mopac_step
[docs]
class LewisStructureStep(object):
my_description = {
"description": "Creates the Lewsi structure for a molecule",
"group": "Analysis",
"name": "Lewis Structure",
}
def __init__(self, flowchart=None, gui=None):
"""Initialize this helper class, which is used by
the application via stevedore to get information about
and create node objects for the flowchart
"""
pass
[docs]
def description(self):
"""Return a description of what this extension does"""
return LewisStructureStep.my_description
[docs]
def create_node(self, flowchart=None, **kwargs):
"""Return the new node object"""
return mopac_step.LewisStructure(flowchart=flowchart, **kwargs)
[docs]
def create_tk_node(self, canvas=None, **kwargs):
"""Return the graphical Tk node object"""
return mopac_step.TkLewisStructure(canvas=canvas, **kwargs)