|
Server IP : 111.118.215.156 / Your IP : 216.73.216.76 Web Server : Apache System : Linux md-in-26.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : azasoqqa ( 1858) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib64/python2.7/Demo/turtle/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
�
���ic @ s_ d Z d d l Td d d � Z d d d � Z d � Z e d k r[ e � Z e GHe � n d S( s� turtle-example-suite:
tdemo_paint.py
A simple eventdriven paint program
- use left mouse button to move turtle
- middle mouse button to change color
- right mouse button do turn filling on/off
-------------------------------------------
Play around by clicking into the canvas
using all three mouse buttons.
-------------------------------------------
To exit press STOP button
-------------------------------------------
i����( t *i c C s0 t � d r t � t � n t � t � d S( Nt pendown( t pent end_fillt upt downt
begin_fill( t xt y( ( s/ /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt switchupdown s
c C s$ t d t d a t t d � d S( Ni i ( t colorst color( R R ( ( s/ /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt changecolor s c C sz t d � t d � t d � t d � d d d d g a t t d � t � t t d
� t t d � t t d � d S(
Nt circlet userg �?i t redt greent bluet yellowi i i t EVENTLOOP(
t shapet
resizemodet shapesizet widthR
R R t
onscreenclickt gotoR ( ( ( s/ /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt main! s
t __main__N( t __doc__t turtleR R R t __name__t msgt mainloop( ( ( s/ /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt <module> s