mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 14:42:25 -04:00
Fixed the "set Tx sequence on double-click callsign", which I broke
earlier today. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@566 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
b637dc9198
commit
515c930c14
19
map65.py
19
map65.py
@ -254,7 +254,7 @@ def stopmon(event=NONE):
|
|||||||
def dbl_click_text(event):
|
def dbl_click_text(event):
|
||||||
t=text.get('1.0',END) #Entire contents of text box
|
t=text.get('1.0',END) #Entire contents of text box
|
||||||
t1=text.get('1.0',CURRENT) #Contents from start to cursor
|
t1=text.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,'OOO',event)
|
dbl_click_call(t,t1,'OOO',1,event)
|
||||||
#------------------------------------------------------ dbl_click3_text
|
#------------------------------------------------------ dbl_click3_text
|
||||||
def dbl_click3_text(event):
|
def dbl_click3_text(event):
|
||||||
t=text.get('1.0',END) #Entire contents of text box
|
t=text.get('1.0',END) #Entire contents of text box
|
||||||
@ -263,24 +263,24 @@ def dbl_click3_text(event):
|
|||||||
rpt=t1[n+24:n+27]
|
rpt=t1[n+24:n+27]
|
||||||
if rpt[0:1] == " ": rpt=rpt[1:]
|
if rpt[0:1] == " ": rpt=rpt[1:]
|
||||||
print n,rpt,t1
|
print n,rpt,t1
|
||||||
dbl_click_call(t,t1,rpt,event)
|
dbl_click_call(t,t1,rpt,1,event)
|
||||||
#------------------------------------------------------ dbl_click_msgtext
|
#------------------------------------------------------ dbl_click_msgtext
|
||||||
def dbl_click_msgtext(event):
|
def dbl_click_msgtext(event):
|
||||||
t=msgtext.get('1.0',END) #Entire contents of text box
|
t=msgtext.get('1.0',END) #Entire contents of text box
|
||||||
t1=msgtext.get('1.0',CURRENT) #Contents from start to cursor
|
t1=msgtext.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,'OOO',event)
|
dbl_click_call(t,t1,'OOO',2,event)
|
||||||
#------------------------------------------------------ dbl_click_bmtext
|
#------------------------------------------------------ dbl_click_bmtext
|
||||||
def dbl_click_bmtext(event):
|
def dbl_click_bmtext(event):
|
||||||
t=bmtext.get('1.0',END) #Entire contents of text box
|
t=bmtext.get('1.0',END) #Entire contents of text box
|
||||||
t1=bmtext.get('1.0',CURRENT) #Contents from start to cursor
|
t1=bmtext.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,'OOO',event)
|
dbl_click_call(t,t1,'OOO',3,event)
|
||||||
#------------------------------------------------------ dbl_click_ave
|
#------------------------------------------------------ dbl_click_ave
|
||||||
def dbl_click_ave(event):
|
def dbl_click_ave(event):
|
||||||
t=avetext.get('1.0',END) #Entire contents of text box
|
t=avetext.get('1.0',END) #Entire contents of text box
|
||||||
t1=avetext.get('1.0',CURRENT) #Contents from start to cursor
|
t1=avetext.get('1.0',CURRENT) #Contents from start to cursor
|
||||||
dbl_click_call(t,t1,'OOO',event)
|
dbl_click_call(t,t1,'OOO',1,event)
|
||||||
#------------------------------------------------------ dbl_click_call
|
#------------------------------------------------------ dbl_click_call
|
||||||
def dbl_click_call(t,t1,rpt,event):
|
def dbl_click_call(t,t1,rpt,nbox,event):
|
||||||
global hiscall
|
global hiscall
|
||||||
i=len(t1) #Length to mouse pointer
|
i=len(t1) #Length to mouse pointer
|
||||||
i1=t1.rfind(' ')+1 #index of preceding space
|
i1=t1.rfind(' ')+1 #index of preceding space
|
||||||
@ -291,10 +291,13 @@ def dbl_click_call(t,t1,rpt,event):
|
|||||||
i3=t1.rfind('\n')+1 #start of selected line
|
i3=t1.rfind('\n')+1 #start of selected line
|
||||||
if i>6 and i2>i1:
|
if i>6 and i2>i1:
|
||||||
try:
|
try:
|
||||||
nsec=60*int(t1[i3+2:i3+4]) + int(t1[i3+4:i3+6])
|
if nbox==2:
|
||||||
|
nsec=3600*int(t1[i3+2:i3+4]) + 60*int(t1[i3+4:i3+6])
|
||||||
|
elif nbox==1:
|
||||||
|
nsec=3600*int(t1[i3+13:i3+15]) + 60*int(t1[i3+15:i3+17])
|
||||||
except:
|
except:
|
||||||
nsec=0
|
nsec=0
|
||||||
if setseq.get(): TxFirst.set((nsec/Audio.gcom1.trperiod)%2)
|
if setseq.get() and nbox!=3: TxFirst.set((nsec/int(Audio.gcom1.trperiod))%2)
|
||||||
lookup()
|
lookup()
|
||||||
GenStdMsgs()
|
GenStdMsgs()
|
||||||
if rpt <> "OOO":
|
if rpt <> "OOO":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user