But, when I click a button, it always receive the index of the last one. So, I cannot know the button the user is clicking.
Is there an easy way to do this?
Just in case someone have my same problem, I solved it in a really non elegant way, but it works:
def update():
for i in xrange(len(buttons)):
if (buttonsStatus[i] < buttons[i].clicks): #Checking the button that has changed
print "pushed button ", i
buttonsStatus[i] = buttons[i].clicks
break;
But, when I click a button, it always receive the index of the last one. So, I cannot know the button the user is clicking.
Is there an easy way to do this?
But, when I click a button, it always receive the index of the last one. So, I cannot know the button the user is clicking.
Is there an easy way to do this?
Thanks
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].