宿題


from Tkinter import *
canvas = Canvas(bg = '#000000'  , width = 640 , height = 480 )
canvas.pack(expand = YES ,  fill=BOTH)
canvas.create_line(0,0,320,200,  fill= '#fff')
canvas.create_oval(20,20,100,150, fill= '#fff' )
canvas.create_oval(20,20,110,150, fill= '#fff' )
canvas.create_oval(20,20,120,150, fill= '#fff' )
canvas.create_text(200,200, fill = '#fff', text="hello")
mainloop( )

Comments are closed.