tkinter How to Disable a Button and Change Button Text

 


import tkinter as tk root = tk.Tk() btn1 = tk.Button(root,text = "Hello")


btn1['state'] = "disabled"
btn1['text'] = "new text"


 





Post a Comment

أحدث أقدم