mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01:00 
			
		
		
		
	Add make html script.
This commit is contained in:
		
				
					committed by
					
						
						Paul Licameli
					
				
			
			
				
	
			
			
			
						parent
						
							9bb41d6963
						
					
				
				
					commit
					23dd853a34
				
			@@ -60,6 +60,7 @@ def oddments_imagesA():
 | 
			
		||||
        capture( name + "Tool.png" , 'Tools' );
 | 
			
		||||
    #A track is needed for the buttons to be active.
 | 
			
		||||
    loadMonoTracks(1)
 | 
			
		||||
    do( 'SetPreference: Name="/GUI/Theme" Value="high-contrast"')
 | 
			
		||||
    for id in range( 11000, 11006 ):
 | 
			
		||||
        do( "Drag: Id="+str( id) + " FromX=10 FromY=10" )
 | 
			
		||||
        capture( "Button" + str(id) +"Hover.png", "Transport" )
 | 
			
		||||
@@ -72,6 +73,7 @@ def oddments_imagesA():
 | 
			
		||||
        do( "Drag: Id="+str( id) + " FromX=10 FromY=10" )
 | 
			
		||||
        capture( "Button" + str(id) +"Hover.png", "Edit" )
 | 
			
		||||
        do( "Drag: Id="+str( id) + " FromX=1000 FromY=10" )
 | 
			
		||||
    do( 'SetPreference: Name="/GUI/Theme" Value="light"')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def oddments_imagesB():
 | 
			
		||||
@@ -87,4 +89,5 @@ def oddments_imagesB():
 | 
			
		||||
 | 
			
		||||
oddments_imagesA()
 | 
			
		||||
oddments_imagesB()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								scripts/piped-work/make_html.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								scripts/piped-work/make_html.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
# Takes an image file directory and makes the web page that lists them.
 | 
			
		||||
# They are listed in creation date/time order.
 | 
			
		||||
 | 
			
		||||
import glob
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
def getFiles() :
 | 
			
		||||
    files = glob.glob("C:\\OpenSourceGit\\AudacityTeamTools\\wit-html\\auto_images\\*.png")
 | 
			
		||||
    files.sort(key=os.path.getmtime)
 | 
			
		||||
    return [ os.path.basename( name ) for name in files ]
 | 
			
		||||
    #print("\n".join(files))
 | 
			
		||||
 | 
			
		||||
def oneItem( name ) :
 | 
			
		||||
    return "<img src='./auto_images/"+name+"'><br><em>"+name+"</em><br>"
 | 
			
		||||
 | 
			
		||||
files = getFiles()
 | 
			
		||||
print( "\n".join( [ oneItem(name) for name in files ] ) )
 | 
			
		||||
		Reference in New Issue
	
	Block a user