0
我想調用函數「function3」,當我點擊按鈕b1(在初始化)。謝謝。python調用函數,當我點擊按鈕
class myClass():
def __init__(self):
b1 = Button(self.ram2C, text="Aaa", command=???function3???)
def function1(self, event=None):
command1
def function2(event):
command2
def function3 (event=None):
command3
'function3'嵌套在'function1'和'function2'中。 – aIKid