mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
Deleted map65.py
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@321 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
594b829751
commit
8de410081a
@ -550,7 +550,7 @@ iframe2.pack(expand=1, fill=X)
|
|||||||
|
|
||||||
#----------------------------------------------- Restore params from INI file
|
#----------------------------------------------- Restore params from INI file
|
||||||
try:
|
try:
|
||||||
f=open('WSJT.INI',mode='r')
|
f=open('MAP65.INI',mode='r')
|
||||||
params=f.readlines()
|
params=f.readlines()
|
||||||
except:
|
except:
|
||||||
params=""
|
params=""
|
||||||
@ -573,7 +573,7 @@ try:
|
|||||||
elif key == 'Fmid': fmid=int(value)
|
elif key == 'Fmid': fmid=int(value)
|
||||||
else: pass
|
else: pass
|
||||||
except:
|
except:
|
||||||
print 'Error reading WSJT.INI, continuing with defaults.'
|
print 'Error reading MAP65.INI, continuing with defaults.'
|
||||||
print key,value
|
print key,value
|
||||||
|
|
||||||
#------------------------------------------------------ Select palette
|
#------------------------------------------------------ Select palette
|
||||||
@ -618,13 +618,13 @@ ltime.after(200,update)
|
|||||||
root.deiconify()
|
root.deiconify()
|
||||||
g.showspecjt=2
|
g.showspecjt=2
|
||||||
if g.Win32: root.iconbitmap("wsjt.ico")
|
if g.Win32: root.iconbitmap("wsjt.ico")
|
||||||
root.title(' SpecJT by K1JT')
|
root.title(' MAP65 by K1JT')
|
||||||
if(__name__=="__main__"):
|
if(__name__=="__main__"):
|
||||||
Audio.gcom2.monitoring=1
|
Audio.gcom2.monitoring=1
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
#-------------------------------------------------- Save user params and quit
|
#-------------------------------------------------- Save user params and quit
|
||||||
f=open('WSJT.INI',mode='w')
|
f=open('MAP65.INI',mode='w')
|
||||||
f.write("UpdateInterval " + str(nspeed0.get()) + "\n")
|
f.write("UpdateInterval " + str(nspeed0.get()) + "\n")
|
||||||
f.write("Brightness " + str(b0)+ "\n")
|
f.write("Brightness " + str(b0)+ "\n")
|
||||||
f.write("Contrast " + str(c0)+ "\n")
|
f.write("Contrast " + str(c0)+ "\n")
|
||||||
|
64
wsjt.py
64
wsjt.py
@ -1,4 +1,4 @@
|
|||||||
#------------------------------------------------------------------- WSJT
|
#------------------------------------------------------------------- MAP65
|
||||||
# $Date$ $Revision$
|
# $Date$ $Revision$
|
||||||
#
|
#
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
@ -17,9 +17,9 @@ from types import *
|
|||||||
import array
|
import array
|
||||||
|
|
||||||
root = Tk()
|
root = Tk()
|
||||||
Version="5.9.6 r" + "$Rev$"[6:-1]
|
Version="0.1 r" + "$Rev$"[6:-1]
|
||||||
print "******************************************************************"
|
print "******************************************************************"
|
||||||
print "WSJT Version " + Version + ", by K1JT"
|
print "MAP65 Version " + Version + ", by K1JT"
|
||||||
print "Revision date: " + \
|
print "Revision date: " + \
|
||||||
"$Date$"[7:-1]
|
"$Date$"[7:-1]
|
||||||
print "Run date: " + time.asctime(time.gmtime()) + " UTC"
|
print "Run date: " + time.asctime(time.gmtime()) + " UTC"
|
||||||
@ -29,12 +29,12 @@ g.Win32=0
|
|||||||
if sys.platform=="win32":
|
if sys.platform=="win32":
|
||||||
g.Win32=1
|
g.Win32=1
|
||||||
try:
|
try:
|
||||||
root.option_readfile('wsjtrc.win')
|
root.option_readfile('map65rc.win')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
root.option_readfile('wsjtrc')
|
root.option_readfile('map65rc')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
root_geom=""
|
root_geom=""
|
||||||
@ -54,6 +54,7 @@ idsec=0
|
|||||||
#irdsec=0
|
#irdsec=0
|
||||||
lauto=0
|
lauto=0
|
||||||
altmsg=0
|
altmsg=0
|
||||||
|
bm_geom=""
|
||||||
cmap0="Linrad"
|
cmap0="Linrad"
|
||||||
fileopened=""
|
fileopened=""
|
||||||
font1='Helvetica'
|
font1='Helvetica'
|
||||||
@ -189,7 +190,7 @@ def textsize():
|
|||||||
def logqso(event=NONE):
|
def logqso(event=NONE):
|
||||||
t=time.strftime("%Y-%b-%d,%H:%M",time.gmtime())
|
t=time.strftime("%Y-%b-%d,%H:%M",time.gmtime())
|
||||||
t=t+","+hiscall+","+hisgrid+","+str(g.nfreq)+","+g.mode+"\n"
|
t=t+","+hiscall+","+hisgrid+","+str(g.nfreq)+","+g.mode+"\n"
|
||||||
t2="Please confirm making the following entry in WSJT.LOG:\n\n" + t
|
t2="Please confirm making the following entry in MAP65.LOG:\n\n" + t
|
||||||
msg=Pmw.MessageDialog(root,buttons=('Yes','No'),message_text=t2)
|
msg=Pmw.MessageDialog(root,buttons=('Yes','No'),message_text=t2)
|
||||||
msg.geometry(msgpos())
|
msg.geometry(msgpos())
|
||||||
if g.Win32: msg.iconbitmap("wsjt.ico")
|
if g.Win32: msg.iconbitmap("wsjt.ico")
|
||||||
@ -643,19 +644,14 @@ def about(event=NONE):
|
|||||||
about=Toplevel(root)
|
about=Toplevel(root)
|
||||||
about.geometry(msgpos())
|
about.geometry(msgpos())
|
||||||
if g.Win32: about.iconbitmap("wsjt.ico")
|
if g.Win32: about.iconbitmap("wsjt.ico")
|
||||||
t="WSJT Version " + Version + ", by K1JT"
|
t="MAP65 Version " + Version + ", by K1JT"
|
||||||
Label(about,text=t,font=(font1,16)).pack(padx=20,pady=5)
|
Label(about,text=t,font=(font1,16)).pack(padx=20,pady=5)
|
||||||
t="""
|
t="""
|
||||||
WSJT is a weak signal communications program. It supports
|
MAP65 is a weak signal communications program designed primarily
|
||||||
four operating modes:
|
for the Earth-Moon-Earth (EME) propagation path.
|
||||||
|
|
||||||
1. FSK441 - fast mode for meteor scatter
|
|
||||||
2. JT6M - optimized for meteor and ionospheric scatter on 50 MHz
|
|
||||||
3. JT65 - for EME and troposcatter
|
|
||||||
4. CW - 15 WPM Morse code, messages structured for EME
|
|
||||||
|
|
||||||
Copyright (c) 2001-2006 by Joseph H. Taylor, Jr., K1JT, with
|
Copyright (c) 2001-2006 by Joseph H. Taylor, Jr., K1JT, with
|
||||||
contributions from additional authors. WSJT is Open Source
|
contributions from additional authors. MAP65 is Open Source
|
||||||
software, licensed under the GNU General Public License (GPL).
|
software, licensed under the GNU General Public License (GPL).
|
||||||
Source code and programming information may be found at
|
Source code and programming information may be found at
|
||||||
http://developer.berlios.de/projects/wsjt/.
|
http://developer.berlios.de/projects/wsjt/.
|
||||||
@ -674,7 +670,7 @@ def shortcuts(event=NONE):
|
|||||||
t="""
|
t="""
|
||||||
F1 List keyboard shortcuts
|
F1 List keyboard shortcuts
|
||||||
Shift+F1 List special mouse commands
|
Shift+F1 List special mouse commands
|
||||||
Ctrl+F1 About WSJT
|
Ctrl+F1 About MAP65
|
||||||
F2 Options
|
F2 Options
|
||||||
F3 Tx Mute
|
F3 Tx Mute
|
||||||
F4 Clear "To Radio"
|
F4 Clear "To Radio"
|
||||||
@ -1289,11 +1285,26 @@ def plot_yellow():
|
|||||||
xy2.append(n)
|
xy2.append(n)
|
||||||
graph1.create_line(xy2,fill="yellow")
|
graph1.create_line(xy2,fill="yellow")
|
||||||
|
|
||||||
|
#------------------------------------------------------ bandmap
|
||||||
|
def bandmap(event=NONE):
|
||||||
|
global Version,bm,bm_geom
|
||||||
|
bm=Toplevel(root)
|
||||||
|
bm.geometry(bm_geom)
|
||||||
|
if g.Win32: bm.iconbitmap("wsjt.ico")
|
||||||
|
iframe_bm1 = Frame(bm, bd=1, relief=SUNKEN)
|
||||||
|
text=Text(iframe_bm1, height=35, width=30, bg="Navy")
|
||||||
|
text.pack(side=LEFT, fill=X, padx=1)
|
||||||
|
text.pack(side=LEFT, fill=X, padx=1)
|
||||||
|
sb = Scrollbar(iframe_bm1, orient=VERTICAL, command=text.yview)
|
||||||
|
sb.pack(side=RIGHT, fill=Y)
|
||||||
|
text.configure(yscrollcommand=sb.set)
|
||||||
|
iframe_bm1.pack(expand=1, fill=X, padx=4)
|
||||||
|
|
||||||
#------------------------------------------------------ update
|
#------------------------------------------------------ update
|
||||||
def update():
|
def update():
|
||||||
global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \
|
global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \
|
||||||
im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \
|
im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \
|
||||||
first,itol,txsnrdb,tx6alt
|
first,itol,txsnrdb,tx6alt,bm_geom
|
||||||
|
|
||||||
utc=time.gmtime(time.time()+0.1*idsec)
|
utc=time.gmtime(time.time()+0.1*idsec)
|
||||||
isec=utc[5]
|
isec=utc[5]
|
||||||
@ -1304,6 +1315,7 @@ def update():
|
|||||||
Audio.gcom2.utcdate=t[:12]
|
Audio.gcom2.utcdate=t[:12]
|
||||||
ldate.configure(text=t)
|
ldate.configure(text=t)
|
||||||
root_geom=root.geometry()
|
root_geom=root.geometry()
|
||||||
|
bm_geom=bm.geometry()
|
||||||
utchours=utc[3]+utc[4]/60.0 + utc[5]/3600.0
|
utchours=utc[3]+utc[4]/60.0 + utc[5]/3600.0
|
||||||
naz,nel,ndmiles,ndkm,nhotaz,nhotabetter=Audio.azdist0( \
|
naz,nel,ndmiles,ndkm,nhotaz,nhotabetter=Audio.azdist0( \
|
||||||
options.MyGrid.get().upper(),HisGrid.get().upper(),utchours)
|
options.MyGrid.get().upper(),HisGrid.get().upper(),utchours)
|
||||||
@ -1697,7 +1709,7 @@ helpmenu.add('command', label = 'What message to send?', \
|
|||||||
command = what2send, accelerator='F5')
|
command = what2send, accelerator='F5')
|
||||||
helpmenu.add('command', label = 'Available suffixes and add-on prefixes', \
|
helpmenu.add('command', label = 'Available suffixes and add-on prefixes', \
|
||||||
command = prefixes)
|
command = prefixes)
|
||||||
helpmenu.add('command', label = 'About WSJT', command = about, \
|
helpmenu.add('command', label = 'About MAP65', command = about, \
|
||||||
accelerator='Ctrl+F1')
|
accelerator='Ctrl+F1')
|
||||||
|
|
||||||
#------------------------------------------------------ Graphics areas
|
#------------------------------------------------------ Graphics areas
|
||||||
@ -2031,7 +2043,7 @@ Audio.gcom1.mute=0
|
|||||||
|
|
||||||
#---------------------------------------------------------- Process INI file
|
#---------------------------------------------------------- Process INI file
|
||||||
try:
|
try:
|
||||||
f=open(appdir+'/WSJT.INI',mode='r')
|
f=open(appdir+'/MAP65.INI',mode='r')
|
||||||
params=f.readlines()
|
params=f.readlines()
|
||||||
except:
|
except:
|
||||||
params=""
|
params=""
|
||||||
@ -2044,7 +2056,8 @@ except:
|
|||||||
try:
|
try:
|
||||||
for i in range(len(params)):
|
for i in range(len(params)):
|
||||||
key,value=params[i].split()
|
key,value=params[i].split()
|
||||||
if key == 'WSJTGeometry': root.geometry(value)
|
if key == 'MAP65Geometry': root.geometry(value)
|
||||||
|
elif key == 'BMGeometry': bm_geom=value
|
||||||
elif key == 'Mode':
|
elif key == 'Mode':
|
||||||
mode.set(value)
|
mode.set(value)
|
||||||
if value=='FSK441':
|
if value=='FSK441':
|
||||||
@ -2156,7 +2169,7 @@ try:
|
|||||||
if mode.get()[:2]=="CW": Audio.gcom1.trperiod=ncwtrperiod
|
if mode.get()[:2]=="CW": Audio.gcom1.trperiod=ncwtrperiod
|
||||||
else: pass
|
else: pass
|
||||||
except:
|
except:
|
||||||
print 'Error reading WSJT.INI, continuing with defaults.'
|
print 'Error reading MAP65.INI, continuing with defaults.'
|
||||||
print key,value
|
print key,value
|
||||||
|
|
||||||
g.mode=mode.get()
|
g.mode=mode.get()
|
||||||
@ -2173,7 +2186,8 @@ Audio.gcom4.addpfx=(options.addpfx.get().lstrip()+' ')[:8]
|
|||||||
stopmon()
|
stopmon()
|
||||||
first=1
|
first=1
|
||||||
if g.Win32: root.iconbitmap("wsjt.ico")
|
if g.Win32: root.iconbitmap("wsjt.ico")
|
||||||
root.title(' WSJT 6 by K1JT')
|
root.title(' MAP65 by K1JT')
|
||||||
|
bandmap()
|
||||||
import astro
|
import astro
|
||||||
import specjt
|
import specjt
|
||||||
|
|
||||||
@ -2181,9 +2195,11 @@ import specjt
|
|||||||
#root.mainloop() #Superseded by mainloop in SpecJT
|
#root.mainloop() #Superseded by mainloop in SpecJT
|
||||||
|
|
||||||
# Clean up and save user options before terminating
|
# Clean up and save user options before terminating
|
||||||
f=open(appdir+'/WSJT.INI',mode='a')
|
f=open(appdir+'/MAP65.INI',mode='a')
|
||||||
root_geom=root_geom[root_geom.index("+"):]
|
root_geom=root_geom[root_geom.index("+"):]
|
||||||
f.write("WSJTGeometry " + root_geom + "\n")
|
f.write("MAP65Geometry " + root_geom + "\n")
|
||||||
|
bm_geom=bm_geom[bm_geom.index("+"):]
|
||||||
|
f.write("BMGeometry " + bm_geom + "\n")
|
||||||
f.write("Mode " + g.mode + "\n")
|
f.write("Mode " + g.mode + "\n")
|
||||||
f.write("MyCall " + options.MyCall.get() + "\n")
|
f.write("MyCall " + options.MyCall.get() + "\n")
|
||||||
f.write("MyGrid " + options.MyGrid.get() + "\n")
|
f.write("MyGrid " + options.MyGrid.get() + "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user