mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Can now change brightess or contrast of next spectrum. Waterfall still
updates only at end of minute, hoiwever. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@465 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
ea5d76ed8e
commit
fe0b20c586
2
map65.py
2
map65.py
@ -1,4 +1,4 @@
|
||||
#-------------------------------------------------------------------- MAP65
|
||||
#--------------------------------------------------------------------- MAP65
|
||||
# $Date$ $Revision$
|
||||
#
|
||||
from Tkinter import *
|
||||
|
@ -30,11 +30,9 @@ subroutine map65a(newdat)
|
||||
|
||||
rewind 11
|
||||
rewind 12
|
||||
if(nrw26.ne.0) then
|
||||
print*,'Rewinding 26'
|
||||
rewind 26
|
||||
if(nrw26.ne.0) rewind 26
|
||||
nrw26=0
|
||||
endif
|
||||
|
||||
if(nutc.ne.nutc0) nfile=nfile+1
|
||||
nutc0=nutc
|
||||
nutcdata=nutc
|
||||
|
10
specjt.py
10
specjt.py
@ -219,9 +219,6 @@ def update():
|
||||
newspec=Audio.gcom2.newspec #True if new data available
|
||||
if newspec:
|
||||
Audio.spec(brightness,contrast,g0,nspeed,a,a2) #Call Fortran routine spec
|
||||
|
||||
if newspec or brightness!=b0 or contrast!=c0:
|
||||
if brightness==b0 and contrast==c0:
|
||||
n=Audio.gcom2.nlines
|
||||
box=(0,0,NX,130-n) #Define region
|
||||
region=im.crop(box) #Get all but last line(s)
|
||||
@ -238,11 +235,8 @@ def update():
|
||||
line02.putdata(a2[NX*i:NX*(i+1)])#One row of pixels to line0
|
||||
im2.paste(line02,(0,i)) #Paste in new top line(s)
|
||||
nscroll=nscroll+n
|
||||
else: #A scale factor has changed
|
||||
im.putdata(a) #Compute whole new image
|
||||
im2.putdata(a2) #Compute whole new image
|
||||
b0=brightness #Save scale values
|
||||
c0=contrast
|
||||
# b0=brightness #Save scale values
|
||||
# c0=contrast
|
||||
|
||||
if newspec:
|
||||
if Audio.gcom2.monitoring:
|
||||
|
Loading…
x
Reference in New Issue
Block a user