View Single Post
  #2  
Old 06-23-2016, 05:25 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote