From ff8579192ce7204ec4e440bc2a4d926c05bb434e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 6 Jan 2006 22:03:35 +0000 Subject: [PATCH] Clear PTT in ftn_init. F10 to show SpecJT screen. Alt-F to toggle Freeze. Erase when changing modes. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@55 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- ftn_init.f90 | 1 + wsjt.py | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ftn_init.f90 b/ftn_init.f90 index 3836da408..c2107bbf2 100644 --- a/ftn_init.f90 +++ b/ftn_init.f90 @@ -24,6 +24,7 @@ subroutine ftn_init include 'gcom3.f90' include 'gcom4.f90' + i=ptt(nport,0,iptt) !Clear the PTT line addpfx=' ' do i=80,1,-1 diff --git a/wsjt.py b/wsjt.py index 7ecd85cf6..c6889a15c 100644 --- a/wsjt.py +++ b/wsjt.py @@ -96,7 +96,7 @@ g.mode="" g.ndevin=IntVar() g.ndevout=IntVar() #------------------------------------------------------ showspecjt -def showspecjt(): +def showspecjt(event=NONE): g.showspecjt=1 #------------------------------------------------------ restart @@ -109,6 +109,10 @@ def restart2(): Audio.gcom2.shok=ShOK.get() Audio.gcom2.nrestart=1 +#------------------------------------------------------ toggle_freeze +def toggle_freeze(event=NONE): + nfreeze.set(1-nfreeze.get()) + #------------------------------------------------------ btx (1-6) def btx1(event=NONE): ntx.set(1) @@ -505,6 +509,7 @@ def ModeFSK441(event=NONE): inctol() ntx.set(1) GenStdMsgs() + erase() #------------------------------------------------------ ModeJT65 def ModeJT65(): @@ -533,6 +538,7 @@ def ModeJT65(): inctol() ntx.set(1) GenStdMsgs() + erase() # graph2.pack_forget() #------------------------------------------------------ ModeJT65A @@ -572,6 +578,7 @@ def ModeJT6M(event=NONE): inctol() ntx.set(1) GenStdMsgs() + erase() #------------------------------------------------------ ModeCW @@ -592,6 +599,7 @@ def ModeCW(event=NONE): report.configure(state=NORMAL) ntx.set(1) GenStdMsgs() + erase() #------------------------------------------------------ ModeEcho def ModeEcho(event=NONE): @@ -653,10 +661,12 @@ Shift-F8 Set JT65B mode CTRL-F8 Set JT65C mode Shift-CTRL-F8 Set CW mode F9 Set EME Echo mode +F10 Display waterfall screen Alt-1 to Alt-6 Tx1 to Tx6 Alt-A Toggle Auto On/Off Alt-D Decode Alt-E Erase +Alt-F Toggle Freeze Alt-G Generate Standard Messages Alt-I Include Alt-L Lookup @@ -1607,6 +1617,7 @@ root.bind_all('', ModeJT65C) root.bind_all('', ModeJT6M) root.bind_all('', ModeCW) root.bind_all('', ModeEcho) +root.bind_all('', showspecjt) root.bind_all('',btx1) root.bind_all('',btx2) @@ -1623,6 +1634,8 @@ root.bind_all('',decode) root.bind_all('',decode) root.bind_all('',erase) root.bind_all('',erase) +root.bind_all('',toggle_freeze) +root.bind_all('',toggle_freeze) root.bind_all('',GenStdMsgs) root.bind_all('',GenStdMsgs) root.bind_all('',decode_include)