gui programming ii the one thing to note here is that we have to tie the check button to variableand it can' be just any variableit has to be special kind of tkinter variablecalled an intvar this variableshow_totalswill be when the check button is unchecked and when it is checked to access the value of the variableyou need to use its get methodlike thisshow_totals get(you can also set the value of the variable using its set method this will automatically check or uncheck the check button on the screen for instanceif you want the above check button checked at the start of the programdo the followingshow_totals intvar(show_totals set( check checkbutton(text'show totals 'var=show_totalsradio buttons the section isradio buttons work similarly the code for the radio buttons shown at the start of color intvar(redbutton radiobutton(text'red 'var=colorvalue= greenbutton radiobutton(text'green 'var=colorvalue= bluebutton radiobutton(text'blue 'var=colorvalue= the value of the intvar object color will be or depending on whether the leftmiddleor right button is selected these values are controlled by the value optionspecified when we create the radio buttons commands both check buttons and radio buttons have command optionwhere you can set callback function to run whenever the button is selected or unselected text widget the text widget is biggermore powerful version of the entry widget here is an example of creating onetextbox text(font='verdana ' )height= width= the widget will be characters wide and rows tall you can still type past the sixth rowthe widget will just display only six rows at timeand you can use the arrow keys to scroll if you want scrollbar associated with the text box you can use the scrolledtext widget other than the scrollbarscrolledtext works more or less the same as text an example is of what it looks like is shown below to use the scrolledtext widgetyou will need the following importfrom tkinter scrolledtext import scrolledtext