['elastic''scribble''trails'class movingpicsdef __init__(selfparent=none)canvas canvas(parentwidth= height= bg'white'canvas pack(expand=yesfill=bothcanvas bind(''self onstartcanvas bind(''self ongrowcanvas bind(''self onclearcanvas bind(''self onmovecanvas bind(''self onselectcanvas bind(''self ondragparent bind(''self onoptionsself createmethod canvas create_oval self canvas canvas self moving [self images [self object none self where none self scribblemode parent title('pydraw moving pictures 'parent protocol('wm_delete_window'self onquitself realquit parent quit self textinfo self canvas create_text anchor=nwfont=helpfonttext='press for help'def onstart(selfevent)self where event self object none def ongrow(selfevent)canvas event widget if self object and pickpens[ ='elastic'canvas delete(self objectself object self createmethod(canvasself where xself where ystart event xevent ystop fill=pickfills[ ]width=pickwidths[ ]if pickpens[ ='scribble'self where event from here next time def onclear(selfevent)if self movingreturn ok if moving but confusing event widget delete('all'use all tag self images [self textinfo self canvas create_text anchor=nwfont=helpfonttext='press for help'def plotmoves(selfevent)diffx event self where diffy event self where plan animated moves horizontal then vertical pydrawpainting and moving graphics