line order

Ben Bush pythonnew at gmail.com
Fri Nov 18 01:38:42 CET 2005


I run the following code and the red line and black line show at the same
time. is there anyway to show the red line first, then the black line? for
example, after I click the 'enter' key?
 from Tkinter import *
tk = Tk()
canvas = Canvas(tk, bg="white", bd=0, highlightthickness=0)
canvas.pack(fill=BOTH, expand=YES)
canvas.create_line(100, 200, 350, 200, arrow=LAST,fill='red')
canvas.create_line(100, 0, 100, 200, arrow=FIRST)
tk.mainloop()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051117/8667ebb5/attachment.html>


More information about the Python-list mailing list