python (3.12.0)
̑e_ ^ d Z ddlmZmZmZ d Zedk( r e ej yy)zturtledemo.two_canvases
Use TurtleScreen and RawTurtle to draw on two
distinct canvases in a separate window. The
new window must be separately closed in
addition to pressing the STOP button.
)TurtleScreen RawTurtleTKc t j } t j | ddd }t j | ddd }|j |j t | }|j ddd t | }|j ddd t
| }t
| }|j dd |j d
|j dd |j d
||fD ]$ }|j d
|j d & |j d ||fD ] }|j t d D ]- }||fD ]$ }|j d |j d & / ||fD ]D }|j |j d |j |j! d F y)Ni, z#ddffff)widthheightbgz#ffeeee333333? red)r r r blue)r r r turtle$ 2 H 6 EVENTLOOP)r TkCanvaspackr bgcolorr colorr shapelt
begin_fillrangefdend_fillpubk) rootcv1cv2s1s2pqtis K/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/turtledemo/two_canvases.pymainr/ s
557D
))DCI
>C
))DCI
>CHHJHHJ c BJJtT1 c BJJq$"
A"
AGGE?#GGAJGGFO$GGAJ
qS R DDI
T
1X A A
DDH
DDH qS
R R __main__N)__doc__r r r r r/ __name__mainloop r0 r. <module>r6 s7 / .&R zFBKKM r0