the first line of this excerpt creates an entry objectsupplying its center point and number of characters to leave space for ( in this caseas with other places where input is requesteda separate static label is added the way the underlying events are hidden in graphics pythere is no signal when the user is done entering text in an entry box to signal the programa mouse press is used above in this case the location of the mouse press is not relevantbut once the mouse press is processedexecution can go on and read the entry text the method name gettext is the same as that used with text object run the next exampleaddentries pyalso copied below"""example with two entry objects and type conversion do addition ""from graphics import def main()win graphwin("addition" win yup(instructions text(point(win getwidth()/ )"enter two numbers \nthen click the mouse "instructions draw(winentry entry(point(win getwidth()/ ), entry settext(' 'entry draw(wintext(point(win getwidth()/ ),'first number:'draw(winentry entry(point(win getwidth()/ ), entry settext(' 'entry draw(wintext(point(win getwidth()/ ),'second number:'draw(winwin getmouse(to know the user is finished with the text numstr entry gettext(num int(numstr numstr entry gettext(num int(numstr sum num num result "the sum of\ {num }\nplus\ {num }\nis {sumformat(**locals()text(point(win getwidth()/ )resultdraw(winwin promptclose(instructionsmain(as with the input statementyou can only read strings from an entry with conversionsit is still possible to work with numbers only one new graphical method has been included above objects and methods