1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-03 17:39:25 +02:00

Add make html script.

This commit is contained in:
James Crook 2018-02-18 12:32:11 +00:00 committed by Paul Licameli
parent 9bb41d6963
commit 23dd853a34
2 changed files with 21 additions and 1 deletions

View File

@ -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()

View 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 ] ) )