printでは、コンソールに出力してしまいます。
配置して有るラベルの文字を更新するには、どの様にすれば良いですか?
python
def btn_callback(): print("ボタンが押されました") import tkinter from tkinter import Tk, ttk root = Tk() root.title("title") root.geometry("400x550") # ボタンを表示 command=処理 button= tkinter.Button(text="button",command=btn_callback) button.place(x=0, y=5) # テキスト表示 tekisuto = tkinter.Label(text="テキストの更新") tekisuto.place(x=150, y=5) root.mainloop()
まだ回答がついていません
会員登録して回答してみよう