mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	Provide runtime capability to set font for astrodata screen.
On main screen, use "Lucida Console" in Windows, Courier bold otherwise. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@283 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									1b7d9f4d74
								
							
						
					
					
						commit
						c48512c35d
					
				
							
								
								
									
										10
									
								
								astro.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								astro.py
									
									
									
									
									
								
							@ -12,6 +12,12 @@ root.withdraw()
 | 
				
			|||||||
root.protocol('WM_DELETE_WINDOW',done)
 | 
					root.protocol('WM_DELETE_WINDOW',done)
 | 
				
			||||||
if g.Win32: root.iconbitmap("wsjt.ico")
 | 
					if g.Win32: root.iconbitmap("wsjt.ico")
 | 
				
			||||||
root.title("Astronomical data")
 | 
					root.title("Astronomical data")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					try:
 | 
				
			||||||
 | 
					    root.option_readfile('astrorc')
 | 
				
			||||||
 | 
					except:
 | 
				
			||||||
 | 
					    pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
frame=Frame(root)
 | 
					frame=Frame(root)
 | 
				
			||||||
frame.pack()
 | 
					frame.pack()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -44,9 +50,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=('"Lucida Console" 16'),justify=LEFT,bg="#66FFFF",
 | 
					lab1=Label(frame,justify=LEFT,bg="#66FFFF",relief=RIDGE,bd=4,anchor=N)
 | 
				
			||||||
lab1=Label(frame,font=('courier 16 bold'),justify=LEFT,bg="#66FFFF",
 | 
					 | 
				
			||||||
           relief=RIDGE,bd=4,anchor=N)
 | 
					 | 
				
			||||||
lab1.pack(ipadx=4)
 | 
					lab1.pack(ipadx=4)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
frame.after(1000,update)
 | 
					frame.after(1000,update)
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										5
									
								
								wsjt.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								wsjt.py
									
									
									
									
									
								
							@ -1299,7 +1299,10 @@ 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='"Lucida Console" 16'
 | 
					            if g.Win32:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                g2font='"Lucida Console" 16'
 | 
				
			||||||
 | 
					            else:
 | 
				
			||||||
                g2font='courier 16 bold'
 | 
					                g2font='courier 16 bold'
 | 
				
			||||||
            graph2.create_text(80,13,anchor=CENTER,text="Moon",font=g2font)
 | 
					            graph2.create_text(80,13,anchor=CENTER,text="Moon",font=g2font)
 | 
				
			||||||
            graph2.create_text(13,37,anchor=W, text="Az: %6.2f" % g.AzMoon,font=g2font)
 | 
					            graph2.create_text(13,37,anchor=W, text="Az: %6.2f" % g.AzMoon,font=g2font)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user