WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

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

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
Old 05-23-2005, 11:28 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

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:
def onbutton(obj,state):
    if state == viz.DOWN:
        if obj == mybutton:
            #my button has been clicked
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 02:41 PM.

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