gui programming ii here are some examples of putting the image into widgetslabel label(image=cheetah_imagebutton button(image=cheetah_imagecommand=cheetah_callback()you can use the configure method to set or change an imagelabel configure(image=cheetah_imagefile types one unfortunate limitation of tkinter is the only common image file type it can use is gif if you would like to use other types of filesone solution is to use the python imaging librarywhich will be covered in section canvases canvas is widget on which you can draw things like linescirclesrectangles you can also draw textimagesand other widgets on it it is very versatile widgetthough we will only describe the basics here creating canvases the following line creates canvas with white background that is pixels in sizecanvas canvas(width= height= bg'white 'rectangles the following code draws red rectangle to the canvascanvas create_rectangle( , , , fill'red 'see the image below on the left the first four arguments specify the coordinates of where to place the rectangle on the canvas the upper left corner of the canvas is the origin( the upper left of the rectangle is at ( )and the lower right is at ( if were to leave off fill='red'the result would be rectangle with black outline ovals and lines drawing ovals and lines is similar the image above on the right is created with the following code