WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-20-2010, 11:43 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try the following:
Code:
import viz
viz.go()
 
r1 = viz.addRadioButton(0)
r2 = viz.addRadioButton(0)
r3 = viz.addRadioButton(0)
r1.setPosition([.5,.6,0])
r2.setPosition([.5,.5,0])
r3.setPosition([.5,.4,0])

#make sure r1 is not selected at start
r1.set(viz.UP)

vizact.onbuttondown(r1,viz.logNotice,'r1 selected')
vizact.onbuttondown(r2,viz.logNotice,'r2 selected')
vizact.onbuttondown(r3,viz.logNotice,'r3 selected')
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC