From a4b53087f6f3370d858e91abfacc76092291d775 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 12 Jul 2007 14:47:41 +0000 Subject: [PATCH] Fix label at top of waterfall in Linux. Fix restoration of SaveDir from MAP65.INI. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@500 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- map65.py | 19 +++++++++---------- specjt.py | 6 +----- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/map65.py b/map65.py index d3bff22b9..84657c2cd 100644 --- a/map65.py +++ b/map65.py @@ -18,6 +18,7 @@ import array root = Tk() Version="0.8 r" + "$Rev$"[6:-1] +Version=Version.strip() print "******************************************************************" print "MAP65 Version " + Version + ", by K1JT" print "Revision date: " + \ @@ -616,9 +617,7 @@ F4 Clear "To Radio" F5 What message to send? F6 Open next file in directory Shift+F6 Decode all wave files in directory -F8 Set JT65A mode -Shift+F8 Set JT65B mode -Ctrl+F8 Set JT65C mode +Shift+F8 JT65B F10 Show Waterfall Shift+F10 Show astronomical data F11 Decrease DF @@ -1336,12 +1335,12 @@ modebutton['menu'] = modemenu # Can use the following to retrieve the state: # state=modemenu.entrycget(0,"state") -modemenu.add_radiobutton(label = 'JT65A', variable=mode, command = ModeJT65A, \ - state=DISABLED, accelerator='F8') +#modemenu.add_radiobutton(label = 'JT65A', variable=mode, command = ModeJT65A, \ +# state=DISABLED, accelerator='F8') modemenu.add_radiobutton(label = 'JT65B', variable=mode, command = ModeJT65B, \ accelerator='Shift+F8') -modemenu.add_radiobutton(label = 'JT65C', variable=mode, command = ModeJT65C, \ - state=DISABLED, accelerator='Ctrl+F8') +#modemenu.add_radiobutton(label = 'JT65C', variable=mode, command = ModeJT65C, \ +# state=DISABLED, accelerator='Ctrl+F8') modemenu.add_radiobutton(label = 'Measure', variable=mode) modemenu.add_radiobutton(label = 'Pulsar', variable=mode,state=DISABLED) @@ -1425,9 +1424,9 @@ root.bind_all('', clrToRadio) root.bind_all('', what2send) root.bind_all('', opennext) root.bind_all('', decodeall) -root.bind_all('', ModeJT65A) +#root.bind_all('', ModeJT65A) root.bind_all('', ModeJT65B) -root.bind_all('', ModeJT65C) +#root.bind_all('', ModeJT65C) root.bind_all('', showspecjt) root.bind_all('', astro1) root.bind_all('',left_arrow) @@ -1740,7 +1739,7 @@ try: elif key == 'fcal': options.fcal.set(value) elif key == 'CSmin': options.ncsmin.set(value) elif key == 'dphi': options.dphi.set(value) - elif key == 'savedir': options.savedir.set(value) + elif key == 'SaveDir': options.savedir.set(value) elif key == 'TxFirst': TxFirst.set(value) elif key == 'KB8RQ': kb8rq.set(value) diff --git a/specjt.py b/specjt.py index c85b8bdf4..266487df2 100644 --- a/specjt.py +++ b/specjt.py @@ -1,4 +1,4 @@ -#----------------------------------------------------- SpecJT +----------------------------------------------------- SpecJT from Tkinter import * from tkMessageBox import showwarning import time @@ -404,12 +404,8 @@ lab1=Label(mbar,width=20,padx=20,bd=0) lab1.pack(side=LEFT) fdf=Label(mbar,width=30,bd=0,anchor=W) fdf.pack(side=LEFT) -fdf2=Label(mbar,width=15,bd=0) -fdf2.pack(side=LEFT) - lab3=Label(mbar,padx=13,bd=0) lab3.pack(side=LEFT) - lab0=Label(mbar,padx=10,bd=0) lab0.pack(side=LEFT)