I'm trying to create a button with the vpython module (and not tkinter for some reasons) and I have this error : AttributeError: bind missing
What's the bind and how can I fix that ?
from vpython import *
def change(): # Appelé par controls quand on clique sur le bouton
if b.text == 'Click me':
b.text = 'Try again'
else:
b.text = 'Click me'
c = controls() # Crée une fenêtre pour les contrôles
# Crée un bouton dans la fenêtre des contrôles:
b = button( pos=(0,0), width=60, height=60,
text='Click me', action=lambda: change() )
while 1:
c.interact()