Skip to content

Commit

Permalink
changes to facilitate the help system generation
Browse files Browse the repository at this point in the history
  • Loading branch information
PetePupalaikis committed Aug 31, 2021
1 parent a54c7c1 commit b7054b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SignalIntegrity/App/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def __init__(self):
netlist,
[PartPropertyCategory('Ports and Probes'),
PartPropertyPartName('DifferentialEyeProbe'),
PartPropertyHelp('device:Eye-Probe'),
PartPropertyHelp('device:Differential-Eye-Probe'),
PartPropertyDefaultReferenceDesignator('Vo?'),
PartPropertyDescription('Differential Eye Probe'),
PartPropertyVoltageGain(1.0),
Expand Down
8 changes: 4 additions & 4 deletions SignalIntegrity/App/EyeDiagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def __init__(self, parent, name):
self.protocol("WM_DELETE_WINDOW", self.onClosing)

# the Doers - the holder of the commands, menu elements, toolbar elements, and key bindings
self.WaveformSaveDoer = Doer(self.onWriteImageToFile).AddHelpElement('Control-Help:Save-Waveforms').AddToolTip('Save images to files')
self.EyeDiagramSaveDoer = Doer(self.onWriteImageToFile).AddHelpElement('Control-Help:Save-Eye-Diagram-Image').AddToolTip('Save images to files')
self.CalculationPropertiesDoer = Doer(self.onCalculationProperties).AddHelpElement('Control-Help:Calculation-Properties').AddToolTip('Edit calculation properties')
self.PropertiesDoer=Doer(self.onProperties).AddHelpElement('Control-Help:Eye-Diagram-Preferences').AddToolTip('Edit eye diagram properties')
self.PropertiesDoer=Doer(self.onProperties).AddHelpElement('Control-Help:Eye-Diagram-Properties').AddToolTip('Edit eye diagram properties')
self.SimulateDoer = Doer(self.onCalculate).AddHelpElement('Control-Help:Recalculate').AddToolTip('Recalculate simulation')
self.OnlyRecalculateEyeDoer =Doer(self.onRecalculateEyeDiagram).AddHelpElement('Control-Help:Only-Recalculate-Eye-Diagram').AddToolTip('Recalculate eye diagram')
# ------
Expand All @@ -90,7 +90,7 @@ def __init__(self, parent, name):
self.config(menu=TheMenu)
FileMenu=tk.Menu(self)
TheMenu.add_cascade(label='File',menu=FileMenu,underline=0)
self.WaveformSaveDoer.AddMenuElement(FileMenu,label="Save Image to File",underline=0)
self.EyeDiagramSaveDoer.AddMenuElement(FileMenu,label="Save Image to File",underline=0)
FileMenu.add_separator()
# ------
CalcMenu=tk.Menu(self)
Expand All @@ -110,7 +110,7 @@ def __init__(self, parent, name):
ToolBarFrame = tk.Frame(self)
ToolBarFrame.pack(side=tk.TOP,fill=tk.X,expand=tk.NO)
iconsdir=SignalIntegrity.App.IconsDir+''
self.WaveformSaveDoer.AddToolBarElement(ToolBarFrame,iconfile=iconsdir+'document-save-2.gif').Pack(side=tk.LEFT,fill=tk.NONE,expand=tk.NO)
self.EyeDiagramSaveDoer.AddToolBarElement(ToolBarFrame,iconfile=iconsdir+'document-save-2.gif').Pack(side=tk.LEFT,fill=tk.NONE,expand=tk.NO)
tk.Frame(self,height=2,bd=2,relief=tk.RAISED).pack(side=tk.LEFT,fill=tk.X,padx=5,pady=5)
self.CalculationPropertiesDoer.AddToolBarElement(ToolBarFrame,iconfile=iconsdir+'tooloptions.gif').Pack(side=tk.LEFT,fill=tk.NONE,expand=tk.NO)
self.SimulateDoer.AddToolBarElement(ToolBarFrame,iconfile=iconsdir+'system-run-3.gif').Pack(side=tk.LEFT,fill=tk.NONE,expand=tk.NO)
Expand Down

0 comments on commit b7054b2

Please sign in to comment.