how to execute different block of code in a button function?

前端 未结 0 1455
我寻月下人不归
我寻月下人不归 2021-01-17 06:06
#use of button
plt.figure()
ax = plt.axes([0.1,0.1,0.1,0.1])
gen = Button(ax, label=\'generator\')
def generator(event):
  a.cla()
  a.hist(x)
  b.cla()
  b.hist(y)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题