View Single Post
  #2  
Old 11-16-2010, 11:51 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,467
Yes, this is possible:
Code:
import viz
import vizdlg

viz.go()

myPanel = vizdlg.Panel(layout=vizdlg.LAYOUT_HORZ_BOTTOM,padding=10)

ticker1 = vizdlg.TickerDialog(label='Ticker 1',range=(1,5,1))
ticker2 = vizdlg.TickerDialog(label='Ticker 2',range=(1,5,1))

ticker1.visible(1)
ticker2.visible(1)

myPanel.addItem(ticker1)
myPanel.addItem(ticker2)

viz.link(viz.CenterCenter,myPanel,offset=(-150,50,0))

#handle accept button events
def onTicker1Accept():
    viz.logNotice('ticker 1 value is: ',ticker1.value)

vizact.onbuttondown(ticker1.accept,onTicker1Accept)

def onTicker2Accept():
	viz.logNotice('ticker 2 value is: ',ticker2.value)

vizact.onbuttondown(ticker2.accept,onTicker2Accept)
Reply With Quote