View Single Post
  #4  
Old 08-28-2016, 01:21 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can customize a vizinfo panel by adding vizdlg panels to it:

Code:
import viz
import vizinfo
import vizdlg

viz.go()

dojo = viz.addChild('dojo.osgb')

info = vizinfo.InfoPanel('InfoPanel with custom layout')

info.addSeparator()
textbox1 = info.addLabelItem('text box 1',viz.addTextbox())
textbox2 = info.addLabelItem('text box 2',viz.addTextbox())

info.addSection('vizdlg sub-panel with 3 elements in a row')
row = vizdlg.Panel(layout=vizdlg.LAYOUT_HORZ_BOTTOM,background=False,border=False)
text1 = row.addItem(viz.addText('Very uncertain'))
slider = row.addItem(viz.addSlider())
text2 = row.addItem(viz.addText('Very certain'))
info.addItem(row)
Reply With Quote