figure screen shot with python window and graphwin of type graphwin one of the things graphwin object can do is to close itself you can think of this command as invoking the close operation that is associated with this particular window the result is that the window disappears from the screen we will be working with quite few commands from the graphics libraryand it gets tedious having to type the graphics notation every time we use one python has an alternative form of import that can help out from graphics import the from statement allows you to load specific definitions from library module you can either list the names of definitions to be imported or use an asteriskas shownto import everything defined in the module the imported commands become directly available without having to preface them with the module name after doing this importwe can create graphwin more simply win graphwin(all of the rest of the graphics examples will assume that the entire graphics module has been imported using from let' try our hand at some drawing graphics window is actually collection of tiny points called pixels (short for picture elementsby controlling the color of each pixelwe control what is displayed in the window by defaulta graphwin is pixels tall and pixels wide that means there are , pixels in the graphwin drawing picture by assigning color to each individual pixel would be daunting challenge insteadwe will rely on library of graphical objects each type of object does its own bookkeeping and knows how to draw itself into graphwin