mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
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:
parent
32cdd0c7a3
commit
e56e271b2d
2
map65.py
2
map65.py
@ -1,4 +1,4 @@
|
|||||||
#---------------------------------------------------------------------- MAP65
|
#--------------------------------------------------------------------- MAP65
|
||||||
# $Date$ $Revision$
|
# $Date$ $Revision$
|
||||||
#
|
#
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
|
@ -113,7 +113,7 @@ def fdf_change(event):
|
|||||||
df=96.0/750.0
|
df=96.0/750.0
|
||||||
fmid=122.8 # empirical
|
fmid=122.8 # empirical
|
||||||
g.Freq=df*(event.x-375) + fmid
|
g.Freq=df*(event.x-375) + fmid
|
||||||
n=int(g.Freq)
|
n=int(g.Freq+0.5)
|
||||||
t="%d" % (n,)
|
t="%d" % (n,)
|
||||||
if g.fc[n] != "":
|
if g.fc[n] != "":
|
||||||
t=t + ": " + g.fc[n]
|
t=t + ": " + g.fc[n]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user