def cmd beginfillcommand cmd draw graphicscommands append cmd commandb pack both def cmd endfillcommand cmd draw graphicscommands append cmd end commande pack both pen down pack def penuphandler cmd penupcommand cmd draw pen up graphicscommands append cmd penupbutton pen up command=penuphandler penupbutton pack both def pendownhandler cmd pendowncommand cmd draw pen down graphicscommands append cmd pendownbutton pen down command=pendownhandler pendownbutton pack both one mouse on def when mouse and pen the needed the width but the widget as cmd gotocommand cmd draw graphicscommands append cmd update screen how we mouse screen onclick clickhandler def cmd gotocommand cmd draw graphicscommands append cmd update screen ondrag undoes command by from and def undohandler graphicscommands graphicscommands et penup goto pendown this copy belongs to 'acha