Skip to content

Commit

Permalink
Merge pull request #393 from alanphys/fixpfgui2
Browse files Browse the repository at this point in the history
Fix picket fence gui for new mlc class
  • Loading branch information
jrkerns authored Jun 9, 2021
2 parents 474652f + 0903730 commit 9eda7fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylinac/py_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def analyze_pf():
self.pf_pickets = IntVar(value=10)
self.pf_pdf = StringVar()
self.pf_mlc = StringVar()
mlc_list = []
for mlc in picketfence.MLC:
mlc_list.append(mlc.value.get('name'))
Checkbutton(self.pf_tab, text='Apply median filter', variable=self.pf_filter).grid(column=1, row=3)
Button(self.pf_tab, text='Load File...', command=load_file).grid(column=1, row=1)
Label(self.pf_tab, text='File:').grid(column=1, row=2)
Expand All @@ -144,7 +147,7 @@ def analyze_pf():
Label(self.pf_tab, text='Number of pickets:').grid(column=1, row=6)
Entry(self.pf_tab, width=7, textvariable=self.pf_pickets).grid(column=2, row=6)
Label(self.pf_tab, text='MLC type:').grid(column=1, row=7)
Combobox(self.pf_tab, values=list(picketfence.MLCs.keys()), textvariable=self.pf_mlc, state='readonly').grid(column=2, row=7)
Combobox(self.pf_tab, values=mlc_list, textvariable=self.pf_mlc, state='readonly').grid(column=2, row=7)
Button(self.pf_tab, text='Analyze', command=analyze_pf).grid(column=1, row=8)
Label(self.pf_tab, text='Analysis will analyze the file according to the settings, \nsave a PDF in the same directory as the original file location and then open it.').grid(column=1, row=9)
self.notebook.add(self.pf_tab, text='Picket Fence')
Expand Down

0 comments on commit 9eda7fa

Please sign in to comment.