You can set the GUI theme globally, for an individual
GUI element, or for a GUI container that contains the button. The example script in
this thread shows how changing various theme properties affects a menu and info panel:
Code:
import viz
import vizinfo
viz.go()
theme = viz.getTheme()
theme.highBackColor = (1,0,0,1)
button = viz.addButtonLabel('Off',pos=[0.2,0.95,1])
button.set(1)
button.setTheme(theme)
infoPanel = vizinfo.InfoPanel('Panel')
infoPanel.getPanel().setTheme(theme)
panelbutton = infoPanel.addItem(viz.addButtonLabel('Off'))
panelbutton.set(1)