WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 07-16-2016, 09:17 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If you're going to use the viz.callback command to handle button events then you should set it up with one callback function. Another way to do this is using vizact.onbuttondown and vizact.onbuttonup. In this case, you should create separate callback functions for each button event:

Code:
import vizact

def n11ButtonDown():
	print 'n11'
	
def z11ButtonDown():
	print 'z11'
	
def z12ButtonDown():
	print 'z12'
	
vizact.onbuttondown(n_checkbox,n11ButtonDown)
vizact.onbuttondown(z_checkbox_p,z11ButtonDown)
vizact.onbuttondown(z_checkbox_n,z12ButtonDown)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 03:04 PM.


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