Thread: Mouse
View Single Post
  #2  
Old 05-23-2005, 11:28 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

The second parameter in the button callback event signifies whether the button is being pressed or released. So you would need to do something like this:
Code:
def onbutton(obj,state):
    if state == viz.DOWN:
        if obj == mybutton:
            #my button has been clicked
Reply With Quote