Label উইজেটের টেক্সট ডাইনামিক্যালি পরিবর্তন করতে label['text'] = 'new text' বা label.config(text='new text') ব্যবহার করুন।
from tkinter import *
win = Tk()
win.geometry("700x350")
def on_click():
label["text"] = "Python"
b["state"] = "disabled"
label = Label(win, text="Click the Button to update this Text", font=('Calibri 15 bold'))
label.pack(pady=20)
b = Button(win, text="Update Label", command=on_click)
b.pack(pady=20)
win.mainloop()
প্রাথমিকভাবে "Click the Button to update this Text" লেখা থাকবে। বাটন ক্লিক করলে "Python" লেখা দেখাবে এবং বাটন ডিজেবল হবে।