![]() |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|