WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-23-2005, 11:18 AM
alaa alaa is offline
Member
 
Join Date: Apr 2005
Posts: 10
Mouse

Hi, How do I make the button when i click on it, it only clicks ones. Every time i click in a button, it does it twice.


Thank you
Alaa G
Reply With Quote
  #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
Reply

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


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