From e56e271b2da8ab1cb2478d100e4327324d4ad94d Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 4 Jul 2007 11:58:39 +0000 Subject: [PATCH] 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 --- map65.py | 2 +- specjt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map65.py b/map65.py index 4db968cc5..9853fe17b 100644 --- a/map65.py +++ b/map65.py @@ -1,4 +1,4 @@ -#---------------------------------------------------------------------- MAP65 +#--------------------------------------------------------------------- MAP65 # $Date$ $Revision$ # from Tkinter import * diff --git a/specjt.py b/specjt.py index 216024325..1bfb9f8b8 100644 --- a/specjt.py +++ b/specjt.py @@ -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]