wx.python按钮设置标签问题

时间:2019-06-08 20:42:50

标签: python

如何更改按钮的标签3次? 我也想为按钮按下打印“ hello3”。

def ChangeButtonLabel(event):
    print 'pressed'

    state=event.GetEventObject().GetValue()
    if state == True:
        print 'hello'
    else:
        print 'hello2'

0 个答案:

没有答案
相关问题