"""The painter module provides different painters for parts of the canvas.Painters can be swapped in and out.Each painter takes care of a layer in the canvas (such as grid, itemsand handles)."""fromtypingimportCollection,ProtocolfromcairoimportContextasCairoContextfromgaphas.itemimportItem