Use nint() roundoff for mouse-pointed freq in SpecJT.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@469 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2007-07-04 11:58:39 +00:00
parent 23ff70affd
commit 73a9da91ee
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#---------------------------------------------------------------------- MAP65
#--------------------------------------------------------------------- MAP65
# $Date$ $Revision$
#
from Tkinter import *

View File

@ -113,7 +113,7 @@ def fdf_change(event):
df=96.0/750.0
fmid=122.8 # empirical
g.Freq=df*(event.x-375) + fmid
n=int(g.Freq)
n=int(g.Freq+0.5)
t="%d" % (n,)
if g.fc[n] != "":
t=t + ": " + g.fc[n]