On 02/09/11 12:18, ???????? wrote: > > in my program,myprint is: > > def myprint(arg): > x=arg.x > y=arg.y > canvas.create_text(x,y,text='i am here') >
Take advantage of Tk canvas tags. def myprint(arg): x = arg.x y = arg.y canvas.delete('text') # delete any canvas items with the tag name text canvas.create_text(x, y, text='i am here', tags='text') Regards, John -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss