mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
More tweaking of fonts; fix NMAX in indexx.f; increase latency in jtaudio.c.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@50 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
ac511866dc
commit
591f0853c3
2
astro.py
2
astro.py
@ -44,7 +44,7 @@ def update():
|
|||||||
g.astro_geom=root.geometry()
|
g.astro_geom=root.geometry()
|
||||||
frame.after(1000,update)
|
frame.after(1000,update)
|
||||||
|
|
||||||
lab1=Label(frame,font=('Arial 16'),justify=LEFT,bg="#66FFFF",
|
lab1=Label(frame,font=('Helvetica 16'),justify=LEFT,bg="#66FFFF",
|
||||||
relief=RIDGE,bd=4,anchor=N)
|
relief=RIDGE,bd=4,anchor=N)
|
||||||
lab1.pack(ipadx=4)
|
lab1.pack(ipadx=4)
|
||||||
|
|
||||||
|
2
indexx.f
2
indexx.f
@ -1,6 +1,6 @@
|
|||||||
subroutine indexx(n,arr,indx)
|
subroutine indexx(n,arr,indx)
|
||||||
|
|
||||||
parameter (NMAX=2000)
|
parameter (NMAX=3000)
|
||||||
integer indx(n)
|
integer indx(n)
|
||||||
real arr(n)
|
real arr(n)
|
||||||
real brr(NMAX)
|
real brr(NMAX)
|
||||||
|
@ -146,7 +146,6 @@ static int SoundOut( void *inputBuffer, void *outputBuffer,
|
|||||||
// ic = framesPerBuffer*ic;
|
// ic = framesPerBuffer*ic;
|
||||||
ic = (int)(stime - *data->trperiod*n) * data->nfs;
|
ic = (int)(stime - *data->trperiod*n) * data->nfs;
|
||||||
ic = ic % *data->nwave;
|
ic = ic % *data->nwave;
|
||||||
// printf("%d\n",ic);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TxOKz=*data->TxOK;
|
TxOKz=*data->TxOK;
|
||||||
@ -224,7 +223,7 @@ int jtaudio_(int *ndevin, int *ndevout, short y1[], short y2[],
|
|||||||
inputParameters.device=*ndevin;
|
inputParameters.device=*ndevin;
|
||||||
inputParameters.channelCount=2;
|
inputParameters.channelCount=2;
|
||||||
inputParameters.sampleFormat=paInt16;
|
inputParameters.sampleFormat=paInt16;
|
||||||
inputParameters.suggestedLatency=0.5;
|
inputParameters.suggestedLatency=1.0;
|
||||||
inputParameters.hostApiSpecificStreamInfo=NULL;
|
inputParameters.hostApiSpecificStreamInfo=NULL;
|
||||||
err2=Pa_OpenStream(
|
err2=Pa_OpenStream(
|
||||||
&instream, //address of stream
|
&instream, //address of stream
|
||||||
@ -244,7 +243,7 @@ int jtaudio_(int *ndevin, int *ndevout, short y1[], short y2[],
|
|||||||
outputParameters.device=*ndevout;
|
outputParameters.device=*ndevout;
|
||||||
outputParameters.channelCount=2;
|
outputParameters.channelCount=2;
|
||||||
outputParameters.sampleFormat=paInt16;
|
outputParameters.sampleFormat=paInt16;
|
||||||
outputParameters.suggestedLatency=0.5;
|
outputParameters.suggestedLatency=1.0;
|
||||||
outputParameters.hostApiSpecificStreamInfo=NULL;
|
outputParameters.hostApiSpecificStreamInfo=NULL;
|
||||||
err2a=Pa_OpenStream(
|
err2a=Pa_OpenStream(
|
||||||
&outstream, //address of stream
|
&outstream, //address of stream
|
||||||
|
@ -414,7 +414,7 @@ sc2.pack(side=LEFT)
|
|||||||
balloon.bind(sc1,"Brightness", "Brightness")
|
balloon.bind(sc1,"Brightness", "Brightness")
|
||||||
balloon.bind(sc2,"Contrast", "Contrast")
|
balloon.bind(sc2,"Contrast", "Contrast")
|
||||||
balloon.configure(statuscommand=status.helpmessage)
|
balloon.configure(statuscommand=status.helpmessage)
|
||||||
ltime=Label(iframe2,bg='black',fg='yellow',width=8,bd=2,font=('Arial',16))
|
ltime=Label(iframe2,bg='black',fg='yellow',width=8,bd=2,font=('Helvetica',16))
|
||||||
ltime.pack(side=LEFT)
|
ltime.pack(side=LEFT)
|
||||||
msg1=Label(iframe2,padx=2,bd=2,text=" ")
|
msg1=Label(iframe2,padx=2,bd=2,text=" ")
|
||||||
msg1.pack(side=LEFT)
|
msg1.pack(side=LEFT)
|
||||||
|
27
wsjt.py
27
wsjt.py
@ -48,7 +48,6 @@ font1='Helvetica'
|
|||||||
font2='Helvetica'
|
font2='Helvetica'
|
||||||
#font1=('MS', 'Sans', 'Serif')
|
#font1=('MS', 'Sans', 'Serif')
|
||||||
#font2=('MS', 'Sans', 'Serif')
|
#font2=('MS', 'Sans', 'Serif')
|
||||||
font3='Courier'
|
|
||||||
hiscall=""
|
hiscall=""
|
||||||
hisgrid=""
|
hisgrid=""
|
||||||
isec0=-99
|
isec0=-99
|
||||||
@ -478,7 +477,7 @@ def ModeFSK441(event=NONE):
|
|||||||
mode.set("FSK441")
|
mode.set("FSK441")
|
||||||
cleartext()
|
cleartext()
|
||||||
Audio.gcom1.trperiod=30
|
Audio.gcom1.trperiod=30
|
||||||
lab2.configure(text='FileID T Width dB Rpt DF')
|
lab2.configure(text='FileID T Width dB Rpt DF')
|
||||||
lab1.configure(text='Time (s)',bg="green")
|
lab1.configure(text='Time (s)',bg="green")
|
||||||
lab4.configure(fg='black')
|
lab4.configure(fg='black')
|
||||||
lab5.configure(fg='black')
|
lab5.configure(fg='black')
|
||||||
@ -507,7 +506,7 @@ def ModeFSK441(event=NONE):
|
|||||||
def ModeJT65():
|
def ModeJT65():
|
||||||
global slabel,isync,isync65,textheight,itol
|
global slabel,isync,isync65,textheight,itol
|
||||||
cleartext()
|
cleartext()
|
||||||
lab2.configure(text='FileID Sync dB DT DF W')
|
lab2.configure(text='FileID Sync dB DT DF W')
|
||||||
lab4.configure(fg='gray85')
|
lab4.configure(fg='gray85')
|
||||||
lab5.configure(fg='gray85')
|
lab5.configure(fg='gray85')
|
||||||
Audio.gcom1.trperiod=60
|
Audio.gcom1.trperiod=60
|
||||||
@ -560,7 +559,7 @@ def ModeJT6M(event=NONE):
|
|||||||
if lauto: toggleauto()
|
if lauto: toggleauto()
|
||||||
cleartext()
|
cleartext()
|
||||||
ModeFSK441()
|
ModeFSK441()
|
||||||
lab2.configure(text='FileID T Width dB DF')
|
lab2.configure(text='FileID T Width dB DF')
|
||||||
mode.set("JT6M")
|
mode.set("JT6M")
|
||||||
isync=isync6m
|
isync=isync6m
|
||||||
lsync.configure(text=slabel+str(isync))
|
lsync.configure(text=slabel+str(isync))
|
||||||
@ -1209,7 +1208,7 @@ def update():
|
|||||||
|
|
||||||
if mode.get()[:4]=='JT65' or mode.get()[:2]=='CW' :
|
if mode.get()[:4]=='JT65' or mode.get()[:2]=='CW' :
|
||||||
graph2.delete(ALL)
|
graph2.delete(ALL)
|
||||||
g2font='Arial 16'
|
g2font='Helvetica 16'
|
||||||
graph2.create_text(75,13,anchor=CENTER,text="Moon",font=g2font)
|
graph2.create_text(75,13,anchor=CENTER,text="Moon",font=g2font)
|
||||||
graph2.create_text(26,37,anchor=W, text="Az: %8.2f" % g.AzMoon,font=g2font)
|
graph2.create_text(26,37,anchor=W, text="Az: %8.2f" % g.AzMoon,font=g2font)
|
||||||
graph2.create_text(26,61,anchor=W, text="El: %8.2f" % g.ElMoon,font=g2font)
|
graph2.create_text(26,61,anchor=W, text="El: %8.2f" % g.ElMoon,font=g2font)
|
||||||
@ -1584,7 +1583,7 @@ iframe2.pack(expand=1, fill=X, padx=4)
|
|||||||
|
|
||||||
#-------------------------------------------------------- Decoded text
|
#-------------------------------------------------------- Decoded text
|
||||||
iframe4 = Frame(frame, bd=1, relief=SUNKEN)
|
iframe4 = Frame(frame, bd=1, relief=SUNKEN)
|
||||||
text=Text(iframe4, height=6, width =90, font=(font3,9))
|
text=Text(iframe4, height=6, width=80)
|
||||||
text.bind('<Double-Button-1>',dbl_click_text)
|
text.bind('<Double-Button-1>',dbl_click_text)
|
||||||
text.bind('<Double-Button-3>',dbl_click_text)
|
text.bind('<Double-Button-3>',dbl_click_text)
|
||||||
|
|
||||||
@ -1649,7 +1648,7 @@ sb.pack(side=RIGHT, fill=Y)
|
|||||||
text.configure(yscrollcommand=sb.set)
|
text.configure(yscrollcommand=sb.set)
|
||||||
iframe4.pack(expand=1, fill=X, padx=4)
|
iframe4.pack(expand=1, fill=X, padx=4)
|
||||||
iframe4b = Frame(frame, bd=1, relief=SUNKEN)
|
iframe4b = Frame(frame, bd=1, relief=SUNKEN)
|
||||||
avetext=Text(iframe4b, height=2, width =90, font=(font3,9))
|
avetext=Text(iframe4b, height=2, width=80)
|
||||||
#avetext.bind('<Key>', lambda e: "break")
|
#avetext.bind('<Key>', lambda e: "break")
|
||||||
avetext.bind('<Double-Button-1>',dbl_click_ave)
|
avetext.bind('<Double-Button-1>',dbl_click_ave)
|
||||||
avetext.bind('<Double-Button-3>',dbl_click_ave)
|
avetext.bind('<Double-Button-3>',dbl_click_ave)
|
||||||
@ -1790,43 +1789,43 @@ auto.grid(column=0,row=5,sticky='EW',padx=4)
|
|||||||
#txstop.grid(column=0,row=6,sticky='EW',padx=4)
|
#txstop.grid(column=0,row=6,sticky='EW',padx=4)
|
||||||
|
|
||||||
ntx=IntVar()
|
ntx=IntVar()
|
||||||
tx1=Entry(f5c,width=28, font=(font2,9))
|
tx1=Entry(f5c,width=22, font=(font2,9))
|
||||||
rb1=Radiobutton(f5c,value=1,variable=ntx)
|
rb1=Radiobutton(f5c,value=1,variable=ntx)
|
||||||
b1=Button(f5c, text='Tx1',underline=2,command=btx1,padx=1,pady=1)
|
b1=Button(f5c, text='Tx1',underline=2,command=btx1,padx=1,pady=1)
|
||||||
tx1.grid(column=1,row=0)
|
tx1.grid(column=1,row=0)
|
||||||
rb1.grid(column=2,row=0)
|
rb1.grid(column=2,row=0)
|
||||||
b1.grid(column=3,row=0)
|
b1.grid(column=3,row=0)
|
||||||
|
|
||||||
tx2=Entry(f5c,width=28, font=(font2,9))
|
tx2=Entry(f5c,width=22, font=(font2,9))
|
||||||
#tx2=Entry(f5c,width=28, font=('helvetica',9))
|
#tx2=Entry(f5c,width=22, font=('helvetica',9))
|
||||||
rb2=Radiobutton(f5c,value=2,variable=ntx)
|
rb2=Radiobutton(f5c,value=2,variable=ntx)
|
||||||
b2=Button(f5c, text='Tx2',underline=2,command=btx2,padx=1,pady=1)
|
b2=Button(f5c, text='Tx2',underline=2,command=btx2,padx=1,pady=1)
|
||||||
tx2.grid(column=1,row=1)
|
tx2.grid(column=1,row=1)
|
||||||
rb2.grid(column=2,row=1)
|
rb2.grid(column=2,row=1)
|
||||||
b2.grid(column=3,row=1)
|
b2.grid(column=3,row=1)
|
||||||
|
|
||||||
tx3=Entry(f5c,width=28, font=(font2,9))
|
tx3=Entry(f5c,width=22, font=(font2,9))
|
||||||
rb3=Radiobutton(f5c,value=3,variable=ntx)
|
rb3=Radiobutton(f5c,value=3,variable=ntx)
|
||||||
b3=Button(f5c, text='Tx3',underline=2,command=btx3,padx=1,pady=1)
|
b3=Button(f5c, text='Tx3',underline=2,command=btx3,padx=1,pady=1)
|
||||||
tx3.grid(column=1,row=2)
|
tx3.grid(column=1,row=2)
|
||||||
rb3.grid(column=2,row=2)
|
rb3.grid(column=2,row=2)
|
||||||
b3.grid(column=3,row=2)
|
b3.grid(column=3,row=2)
|
||||||
|
|
||||||
tx4=Entry(f5c,width=28, font=(font2,9))
|
tx4=Entry(f5c,width=22, font=(font2,9))
|
||||||
rb4=Radiobutton(f5c,value=4,variable=ntx)
|
rb4=Radiobutton(f5c,value=4,variable=ntx)
|
||||||
b4=Button(f5c, text='Tx4',underline=2,command=btx4,padx=1,pady=1)
|
b4=Button(f5c, text='Tx4',underline=2,command=btx4,padx=1,pady=1)
|
||||||
tx4.grid(column=1,row=3)
|
tx4.grid(column=1,row=3)
|
||||||
rb4.grid(column=2,row=3)
|
rb4.grid(column=2,row=3)
|
||||||
b4.grid(column=3,row=3)
|
b4.grid(column=3,row=3)
|
||||||
|
|
||||||
tx5=Entry(f5c,width=28, font=(font2,9))
|
tx5=Entry(f5c,width=22, font=(font2,9))
|
||||||
rb5=Radiobutton(f5c,value=5,variable=ntx)
|
rb5=Radiobutton(f5c,value=5,variable=ntx)
|
||||||
b5=Button(f5c, text='Tx5',underline=2,command=btx5,padx=1,pady=1)
|
b5=Button(f5c, text='Tx5',underline=2,command=btx5,padx=1,pady=1)
|
||||||
tx5.grid(column=1,row=4)
|
tx5.grid(column=1,row=4)
|
||||||
rb5.grid(column=2,row=4)
|
rb5.grid(column=2,row=4)
|
||||||
b5.grid(column=3,row=4)
|
b5.grid(column=3,row=4)
|
||||||
|
|
||||||
tx6=Entry(f5c,width=28, font=(font2,9))
|
tx6=Entry(f5c,width=22, font=(font2,9))
|
||||||
rb6=Radiobutton(f5c,value=6,variable=ntx)
|
rb6=Radiobutton(f5c,value=6,variable=ntx)
|
||||||
b6=Button(f5c, text='Tx6',underline=2,command=btx6,padx=1,pady=1)
|
b6=Button(f5c, text='Tx6',underline=2,command=btx6,padx=1,pady=1)
|
||||||
tx6.grid(column=1,row=5)
|
tx6.grid(column=1,row=5)
|
||||||
|
7
wsjtrc
7
wsjtrc
@ -1,7 +1,8 @@
|
|||||||
*font: Arial 8
|
*font: Arial 9
|
||||||
*Label*font: Arial 8
|
*Label*font: Arial 9
|
||||||
|
*Text*font: "Courier New" 10
|
||||||
*background: gray85
|
*background: gray85
|
||||||
*Text*background: white
|
*Text*background: white
|
||||||
*Entry*background: white
|
*Entry*background: white
|
||||||
*foregouund: black
|
*foreground: black
|
||||||
*Listbox*foreground: RoyalBlue
|
*Listbox*foreground: RoyalBlue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user