You can change the colors of a progress bar created with vizdlg or vizmenu by setting the object's theme. Take a look at the example script attached to post #3 of
this thread to experiment with changing the theme. The following code changes the color of a progress bar by adding it to a vizinfo panel and changing the theme of the underlying vizdlg panel:
Code:
import viz
import vizinfo
viz.go()
info = vizinfo.InfoPanel('',icon=False)
slider = info.addItem(viz.addProgressBar(''))
slider.set(0.5)
#Set in colors for green theme
greenTheme = viz.Theme()
greenTheme.borderColor = (0.1,0.2,0.05,1)
greenTheme.backColor = (0.5,0.7,0.3,1)
greenTheme.lightBackColor = (0.6,0.8,0.4,1)
greenTheme.darkBackColor = (0.2,0.4,0.1,1)
greenTheme.highBackColor = (0.2,0.4,0.1,1)
info.getPanel().setTheme(greenTheme)