mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 22:28:41 -05:00
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:
parent
d90e63f2b7
commit
3cc9032897
@ -22,7 +22,6 @@ def hidespecjt():
|
||||
def showspecjt():
|
||||
root.deiconify()
|
||||
g.showspecjt=2
|
||||
g.focus=1
|
||||
|
||||
if(__name__=="__main__"):
|
||||
root = Tk()
|
||||
@ -374,8 +373,6 @@ def update():
|
||||
Audio.gcom2.nfmid=int(fmid)
|
||||
Audio.gcom2.nfrange=int(frange)
|
||||
|
||||
# if g.focus==2:
|
||||
# root.focus_set()
|
||||
ltime.after(200,update) #Reset the timer
|
||||
|
||||
#-------------------------------------------------------- draw_axis
|
||||
|
11
wsjt.py
11
wsjt.py
@ -103,18 +103,9 @@ g.ndevin=IntVar()
|
||||
g.ndevout=IntVar()
|
||||
g.DevinName=StringVar()
|
||||
g.DevoutName=StringVar()
|
||||
g.focus=0
|
||||
#------------------------------------------------------ showspecjt
|
||||
def showspecjt(event=NONE):
|
||||
if g.showspecjt>0:
|
||||
if g.focus>=1:
|
||||
# root.focus_set()
|
||||
g.focus=0
|
||||
else:
|
||||
g.focus=2
|
||||
else:
|
||||
g.showspecjt=1
|
||||
g.focus=2
|
||||
if g.showspecjt==0: g.showspecjt=1
|
||||
|
||||
#------------------------------------------------------ restart
|
||||
def restart():
|
||||
|
Loading…
Reference in New Issue
Block a user