From 6e6051d92404d862507fa409008a16a36052430a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 23 Jul 2008 00:26:17 +0000 Subject: [PATCH] Reverse order of drawing axis and fQSO mark. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@985 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- specjt.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specjt.py b/specjt.py index cb4488388..e85bc745f 100644 --- a/specjt.py +++ b/specjt.py @@ -222,7 +222,6 @@ def draw_axis(): c2.create_text(x,y,text=str(ix)) c2.create_line(i,25,i,j,fill='black') - #---------------------------------------------------- freq_range def freq_range(event): # Move frequency scale left or right in 100 Hz increments @@ -335,6 +334,15 @@ def update(): c0=contrast g.cmap0=g.cmap + if Audio.gcom2.nfreeze != nfreeze0: + if not Audio.gcom2.nfreeze: draw_axis() + if Audio.gcom2.nfreeze: df_mark() + nfreeze0=int(Audio.gcom2.nfreeze) + + if Audio.gcom2.fcenter!=fcenter0: + draw_axis() + fcenter0=float(Audio.gcom2.fcenter) + if (Audio.gcom2.mousedf != mousedf0 or Audio.gcom2.mousefqso != mousefqso0 or Audio.gcom2.dftolerance != dftolerance0 or @@ -348,11 +356,6 @@ def update(): nfa0=int(Audio.gcom2.nfa) nfb0=int(Audio.gcom2.nfb) - if Audio.gcom2.nfreeze != nfreeze0: - if not Audio.gcom2.nfreeze: draw_axis() - if Audio.gcom2.nfreeze: df_mark() - nfreeze0=int(Audio.gcom2.nfreeze) - if g.mode!=mode0: df_mark() ### was draw_axis() mode0=g.mode @@ -365,9 +368,6 @@ def update(): Audio.gcom2.nlines=0 Audio.gcom2.nflat=nflat.get() - if Audio.gcom2.fcenter!=fcenter0: - draw_axis() - fcenter0=float(Audio.gcom2.fcenter) frange=nfr.get()*2000 if(fmid<>fmid0 or frange<>frange0): if fmid<1000*nfr.get(): fmid=1000*nfr.get()