mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 04:50:34 -04: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(): | 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
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								wsjt.py
									
									
									
									
									
								
							| @ -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(): | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user