Skip to content

Commit

Permalink
Aswer Issue #21
Browse files Browse the repository at this point in the history
Now the FWHM accept only positive values.
  • Loading branch information
lopesth committed Nov 1, 2019
1 parent 510b88e commit f374e8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file modified SP3CTRUM/APP/__pycache__/sp3ctrum_gui.cpython-37.pyc
Binary file not shown.
8 changes: 7 additions & 1 deletion SP3CTRUM/APP/sp3ctrum_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,13 @@ def getSimpleValues(self):

try:
self.fwhm = float(self.fwhm_entry.get())
self.fwhm_entry.configure(fg="#263A90", bg="#FFFFFF")
if self.fwhm < 0:
messagebox.showinfo("Incoherent input values",
"The value of FWHM does not make sense.")
self.fwhm_entry.configure(bg ="#DF0027", fg="#FFFFFF")
error = True
else:
self.fwhm_entry.configure(fg="#263A90", bg="#FFFFFF")
except:
messagebox.showinfo("Incoherent input values",
"The value of FWHM does not make sense.")
Expand Down

0 comments on commit f374e8d

Please sign in to comment.