import tkinter as tk from tkinter import ttk #create instance win=tk tk(#adding label that will get modified a_label=ttk label(win,text=" label"a_label grid(column= ,row= #button click event function def click_me()action configure(text="* have been clicked**"a_label configure(foreground='red'a_label configure(text=' red label'#adding button action=ttk button(wintext="click me!",command=click_meaction grid(column= ,row= #start gui win mainloop(here win is the parent of button the output of above code is shown below fig button widget entry textbox the entry widget is used to provide the single line text-box to the user to accept value from the user we can use this widget to accept the text strings from the user it can only be used for one line of text from the user for multiple lines of textwe must use the text widget syntax =entry(parent,options list of possible options is given below sr no option bg bd description the background color of the widget the border width of the widget in pixels