further graphical programming from pil import imageimagetkimagedraw root tk(canvas canvas(width= height= canvas grid(image=image new(mode'rgb ',size=( , )draw imagedraw draw(imagedraw rectangle([( , ),( )],fill'# ' [(randint( , )randint( )for in range( )draw point(lfill'yellow 'photo=imagetk photoimage(imagecanvas create_image( , ,image=photo,anchor=nwmainloop(to use imagedrawwe have to first create an imagedraw object and tie it to the image object the draw rectangle method works similarly to the create_rectangle method of canvasesexcept for few differences with parentheses the draw point method is used to plot individual pixels nice feature of it is we can pass list of points instead of having to plot each thing in the list separately passing list is also much faster pygame pygame is library for creating two-dimensional games in python it can be used to can make games at the level of old arcade or nintendo games it can be downloaded and easily installed from www pygame org there are number of tutorials there to help you get started don' know whole lot about pygameso won' cover it herethough perhaps in later edition will