AlkantarClanX12
Current Path : /lib64/python2.7/Demo/turtle/ |
Current File : //lib64/python2.7/Demo/turtle/tdemo_two_canvases.pyo |
� ��^c @ sO d Z d d l m Z m Z m Z d � Z e d k rK e � e j � n d S( s� turtledemo.two_canvases Use TurtleScreen and RawTurtle to draw on two distinct canvases in a separate windows. The new window must be separately closed in addition to pressing the STOP button. i����( t TurtleScreent RawTurtlet TKc C s� t j � } t j | d d d d d d �} t j | d d d d d d �} | j � | j � t | � } | j d d d � t | � } | j d d d � t | � } t | � } | j d d � | j d � | j d d � | j d � x. | | f D] } | j d � | j d � q� W| j d � x | | f D] } | j � q=WxE t d � D]7 } x. | | f D] } | j d � | j d � qqWq^WxB | | f D]4 } | j � | j d � | j � | j d � q�Wd S( Nt widthi, t heighti� t bgs #ddffffs #ffeeeeg333333�?i t redi t bluet turtlei$ i� i i2 iH i6 t EVENTLOOP( i g333333�?g333333�?( g333333�?g333333�?i ( R t Tkt Canvast packR t bgcolorR t colorR t shapet ltt begin_fillt ranget fdt end_fillt put bk( t roott cv1t cv2t s1t s2t pt qt tt i( ( s6 /usr/lib64/python2.7/Demo/turtle/tdemo_two_canvases.pyt main s>