wait for mouse click win getmouse(convert input celsius eval(input gettext()fahrenheit celsius display output and change button output settext(fahrenheitbutton settext("quit"wait for click and then quit win getmouse(win close(main(when runthis produces window with an entry box for typing in celsius temperature and "buttonfor doing the conversion the button is just for show the program actually just pauses for mouse click anywhere in the window figure shows how the window looks when the program starts figure initial screen for graphical temperature converter initiallythe input entry box is set to contain the value the user can delete this value and type in another temperature the program pauses until the user clicks the mouse notice that the point where the user clicks is not even savedthe getmouse method is just used to pause the program until the user has chance to enter value in the input box