12 Frame.__init__(self, master)
23 canheight = self.
r * self.
space
24 self.
can = Canvas(self, bg=
"white",
25 width=canwidth, height=canheight)
40 for i
in range(self.
num):
52 self.
x2[i], self.
y2[i],
62 fill=
"#700040", width=5))
66 if len(angle) != self.
num:
return
71 self.
line[i] = self.
can.create_line(self.
x[i], self.
y[i],
72 self.
x[i] + self.
r * math.cos(a),
73 self.
y[i] + self.
r * math.sin(a),
74 fill=
"#700040", width=5)
82 _thread.start_new_thread(m.mainloop, ())
83 _thread.start_new_thread(n.mainloop, ())
86 angle = [cnt % 360, - cnt % 360, cnt % 360, - cnt % 360, cnt % 360, - cnt % 360]
92 if __name__ ==
'__main__':
test()