the program then processes the input in four steps firstthe text in the input box is converted into number (via evalthis number is then converted to degrees fahrenheit finallythe resulting number is displayed in the output text area although fahrenheit is an int valuethe settext method automatically converts it to string so that it can be displayed in the output text box figure shows how the window looks after the user has typed an input and clicked the mouse notice that the converted temperature shows up in the output areaand the label on the button has changed to "quitto show that clicking again will exit the program this example could figure graphical temperature converter after user input be made much prettier using some of the options in the graphics library for changing the colorssizes and line widths of the various widgets the code for the program is deliberately spartan to illustrate just the essential elements of gui design although the basic tools getmouse and entry do not provide full-fledged gui environmentwe will see in later how these simple mechanisms can support surprisingly rich interactions graphics module reference the examples in this have touched on most of the elements in the graphics module this section provides complete reference to the objects and functions provided in the graphics library the set of objects and functions that are provided by module is sometimes called an applications programming interface or api experienced programmers study apis to learn about new libraries you should probably read this section over once to see what the graphics library has to offer after thatyou will probably want to refer back to this section often when you are writing your own graphical programs