homework

from Tkinter import *
canvas = Canvas(bg = '#000000', width=640, height=480)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_line(0, 0, 320, 240, fill = '#0560ff')
canvas.create_line(20, 0, 320, 240, fill = '#0550ff')
canvas.create_line(40, 0, 320, 240, fill = '#0540ff')
canvas.create_line(60, 0, 320, 240, fill = '#0530ff')
canvas.create_line(80, 0, 320, 240, fill = '#0520ff')
canvas.create_line(100, 0, 320, 240, fill = '#0510ff')
canvas.create_line(120, 0, 320, 240, fill = '#0500ff')
canvas.create_line(140, 0, 320, 240, fill = '#0490ff')
canvas.create_line(160, 0, 320, 240, fill = '#0480ff')
canvas.create_line(180, 0, 320, 240, fill = '#0470ff')
canvas.create_line(200, 0, 320, 240, fill = '#0460ff')
canvas.create_line(220, 0, 320, 240, fill = '#0450ff')
canvas.create_line(240, 0, 320, 240, fill = '#0440ff')
canvas.create_line(260, 0, 320, 240, fill = '#0430ff')
canvas.create_line(280, 0, 320, 240, fill = '#0420ff')
canvas.create_line(300, 0, 320, 240, fill = '#0410ff')
canvas.create_line(320, 0, 320, 240, fill = '#0400ff')
canvas.create_line(340, 0, 320, 240, fill = '#0390ff')
canvas.create_line(360, 0, 320, 240, fill = '#0380ff')
canvas.create_line(380, 0, 320, 240, fill = '#0370ff')
canvas.create_line(400, 0, 320, 240, fill = '#0360ff')
canvas.create_line(420, 0, 320, 240, fill = '#0350ff')
canvas.create_line(440, 0, 320, 240, fill = '#0340ff')
canvas.create_line(460, 0, 320, 240, fill = '#0330ff')
canvas.create_line(480, 0, 320, 240, fill = '#0320ff')
canvas.create_line(500, 0, 320, 240, fill = '#0310ff')
canvas.create_line(520, 0, 320, 240, fill = '#0300ff')
canvas.create_line(540, 0, 320, 240, fill = '#0290ff')
canvas.create_line(560, 0, 320, 240, fill = '#0280ff')
canvas.create_line(580, 0, 320, 240, fill = '#0270ff')
canvas.create_line(600, 0, 320, 240, fill = '#0260ff')
canvas.create_line(620, 0, 320, 240, fill = '#0250ff')
canvas.create_line(640, 0, 320, 240, fill = '#0240ff')
canvas.create_line(0, 20, 320, 240, fill = '#0230ff')
canvas.create_line(0, 40, 320, 240, fill = '#0220ff')
canvas.create_line(0, 60, 320, 240, fill = '#0210ff')
canvas.create_line(0, 80, 320, 240, fill = '#0200ff')
canvas.create_line(0, 100, 320, 240, fill = '#0190ff')
canvas.create_line(0, 120, 320, 240, fill = '#0180ff')
canvas.create_line(0, 140, 320, 240, fill = '#0170ff')
canvas.create_line(0, 160, 320, 240, fill = '#0160ff')
canvas.create_line(0, 180, 320, 240, fill = '#0150ff')
canvas.create_line(0, 200, 320, 240, fill = '#0140ff')
canvas.create_line(0, 220, 320, 240, fill = '#0130ff')
canvas.create_line(0, 240, 320, 240, fill = '#0120ff')
canvas.create_line(0, 260, 320, 240, fill = '#0110ff')
canvas.create_line(0, 280, 320, 240, fill = '#0100ff')
canvas.create_line(0, 300, 320, 240, fill = '#0090ff')
canvas.create_line(0, 320, 320, 240, fill = '#0080ff')
canvas.create_line(0, 340, 320, 240, fill = '#0070ff')
canvas.create_line(0, 360, 320, 240, fill = '#0060ff')
canvas.create_line(0, 380, 320, 240, fill = '#0050ff')
canvas.create_line(0, 400, 320, 240, fill = '#0040ff')
canvas.create_line(0, 420, 320, 240, fill = '#0030ff')
canvas.create_line(0, 440, 320, 240, fill = '#0020ff')
canvas.create_line(0, 460, 320, 240, fill = '#0010ff')
canvas.create_line(0, 480, 320, 240, fill = '#0000ff')

mainloop()

print

Comments are closed.