layout = BoxLayout(padding=10)nbutton = Button(text=My first button)nlayout.add_widget(button)n. 這個按鈕就添加到布局當中去了:按鈕的parent ...
確定! 回上一頁