printでは、コンソールに出力してしまいます。
配置して有るラベルの文字を更新するには、どの様にすれば良いですか?
python
1 2def btn_callback(): 3 print("ボタンが押されました") 4 5import tkinter 6from tkinter import Tk, ttk 7 8root = Tk() 9root.title("title") 10root.geometry("400x550") 11 12# ボタンを表示 command=処理 13button= tkinter.Button(text="button",command=btn_callback) 14button.place(x=0, y=5) 15 16# テキスト表示 17tekisuto = tkinter.Label(text="テキストの更新") 18tekisuto.place(x=150, y=5) 19 20root.mainloop()

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。