Get rid of g.focus entirely.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@289 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2006-09-08 14:34:55 +00:00
parent d40fd3aae8
commit 3cc8cc54bb
2 changed files with 1 additions and 13 deletions

View File

@ -22,7 +22,6 @@ def hidespecjt():
def showspecjt(): def showspecjt():
root.deiconify() root.deiconify()
g.showspecjt=2 g.showspecjt=2
g.focus=1
if(__name__=="__main__"): if(__name__=="__main__"):
root = Tk() root = Tk()
@ -374,8 +373,6 @@ def update():
Audio.gcom2.nfmid=int(fmid) Audio.gcom2.nfmid=int(fmid)
Audio.gcom2.nfrange=int(frange) Audio.gcom2.nfrange=int(frange)
# if g.focus==2:
# root.focus_set()
ltime.after(200,update) #Reset the timer ltime.after(200,update) #Reset the timer
#-------------------------------------------------------- draw_axis #-------------------------------------------------------- draw_axis

11
wsjt.py
View File

@ -103,18 +103,9 @@ g.ndevin=IntVar()
g.ndevout=IntVar() g.ndevout=IntVar()
g.DevinName=StringVar() g.DevinName=StringVar()
g.DevoutName=StringVar() g.DevoutName=StringVar()
g.focus=0
#------------------------------------------------------ showspecjt #------------------------------------------------------ showspecjt
def showspecjt(event=NONE): def showspecjt(event=NONE):
if g.showspecjt>0: if g.showspecjt==0: g.showspecjt=1
if g.focus>=1:
# root.focus_set()
g.focus=0
else:
g.focus=2
else:
g.showspecjt=1
g.focus=2
#------------------------------------------------------ restart #------------------------------------------------------ restart
def restart(): def restart():