gui programming iii this contains few more gui odds and ends title bar the gui window that tkinter creates says tk by default here is how to change itroot title'your title ' disabling things sometimes you want to disable button so it can' be clicked buttons have an attribute state that allows you to disable the widget use state=disabled to disable the button and state=normal to enable it here is an example that creates button that starts out disabled and then enables itbutton button(text'hi 'state=disabledcommand=functionbutton configure(state=normalyou can use the state attribute to disable many other types of widgetstoo getting the state of widget sometimesyou need to know things about widgetlike exactly what text is in it or what its background color is the cget method is used for this for examplethe following gets the text of label called labellabel cget'text '