Skip to content

Commit

Permalink
fix picket fence gui new mlc class
Browse files Browse the repository at this point in the history
  • Loading branch information
alanphys committed May 28, 2021
1 parent dece7f4 commit 0903730
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylinac/py_gui.py
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 0903730

Please sign in to comment.