tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
N\¬QcO@sdZdZddlZddlZddlZddlZddlZddlm    Z    m
Z
m Z ddl m Z ddlTddd    d
d d d ddg    Zddddddddddddddddd d!d"d#d$d%d&d'd(d)gZd*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmd%dndodpdqdrd(d)dsdtdugOZdvdwdxgZdydzd{d|d}d~dd€dd‚dƒd„d…d†d‡dˆd‰dŠd‹dŒddŽddd‘gZeeeeeZdd+d.d;dGdKdOdUdWd\d]d_d`didndqdrgZid’dr6d“d”6d•d–6d—d˜6ed™6edš6d›d6dœd6dd6dždŸ6d de6d¡dQ6d¡d=6d¢d[6ed£6d¤d¥6d¦d§6d¨d©6dªd$6ed«6Zd¬„Zd­„ZyeeƒWn d®GHnXdefd¯„ƒYZd°„Zd±„Zd²d³Zfd´„Z dej!fdµ„ƒYZ"e e"ej#d¶ƒd·ej$fd¸„ƒYZ%ej#Z#d¹e&fdº„ƒYZ'd»e(fd¼„ƒYZ)d½e(fd¾„ƒYZ*de&fd¿„ƒYZ+dÀe&fdÁ„ƒYZ,de'fd„ƒYZ-dÃe&fdĄƒYZ.dÅe&fdƄƒYZ/dÇe&fdȄƒYZ0d
e/e.fdɄƒYZ1e1Z2dʄZ3dËe-fd̄ƒYZ4d e1fd̈́ƒYZ5e5Z6d΄Z7dτZ8dÐdфZ9d҄Z:ed¥Z;ye;d¤krOe:e;ƒnWn)e<k
rldÓGe;GHndÔe;GHnXdՄZ=dքZ>dׄZ?x’eD]ŠZ@e=eAdØe@ƒƒ\ZBZCeBdÙkrßdÚGeBGeCGHqžndÛie@dÜ6eBdÝ6eCdÞ6ZDeDdUe?eAdØe@ƒjƒeAe@ƒ_qžWx’eD]ŠZ@e=eAdße@ƒƒ\ZBZCeBdÙkrtdÚGeBGeCGHq3ndàie@dÜ6eBdÝ6eCdÞ6ZDeDdUe>eAdße@ƒjƒeAe@ƒ_q3WejEZFZE[B[C[DeGdákrdâ„ZHdã„ZIdä„ZJeIƒeJƒeKƒndS(ås
Turtle graphics is a popular way for introducing programming to
kids. It was part of the original Logo programming language developed
by Wally Feurzig and Seymour Papert in 1966.
 
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
the direction it is facing, drawing a line as it moves. Give it the
command turtle.right(25), and it rotates in-place 25 degrees clockwise.
 
By combining together these and similar commands, intricate shapes and
pictures can easily be drawn.
 
----- turtle.py
 
This module is an extended reimplementation of turtle.py from the
Python standard distribution up to Python 2.5. (See: http://www.python.org)
 
It tries to keep the merits of turtle.py and to be (nearly) 100%
compatible with it. This means in the first place to enable the
learning programmer to use all the commands, classes and methods
interactively when using the module from within IDLE run with
the -n switch.
 
Roughly it has the following features added:
 
- Better animation of the turtle movements, especially of turning the
  turtle. So the turtles can more easily be used as a visual feedback
  instrument by the (beginning) programmer.
 
- Different turtle shapes, gif-images as turtle shapes, user defined
  and user controllable turtle shapes, among them compound
  (multicolored) shapes. Turtle shapes can be stretched and tilted, which
  makes turtles very versatile geometrical objects.
 
- Fine control over turtle movement and screen updates via delay(),
  and enhanced tracer() and speed() methods.
 
- Aliases for the most commonly used commands, like fd for forward etc.,
  following the early Logo traditions. This reduces the boring work of
  typing long sequences of commands, which often occur in a natural way
  when kids try to program fancy pictures on their first encounter with
  turtle graphics.
 
- Turtles now have an undo()-method with configurable undo-buffer.
 
- Some simple commands/methods for creating event driven programs
  (mouse-, key-, timer-events). Especially useful for programming games.
 
- A scrollable Canvas class. The default scrollable Canvas can be
  extended interactively as needed while playing around with the turtle(s).
 
- A TurtleScreen class with methods controlling background color or
  background image, window and canvas size and other properties of the
  TurtleScreen.
 
- There is a method, setworldcoordinates(), to install a user defined
  coordinate-system for the TurtleScreen.
 
- The implementation uses a 2-vector class named Vec2D, derived from tuple.
  This class is public, so it can be imported by the application programmer,
  which makes certain types of computations very natural and compact.
 
- Appearance of the TurtleScreen and the Turtles at startup/import can be
  configured by means of a turtle.cfg configuration file.
  The default configuration mimics the appearance of the old turtle module.
 
- If configured appropriately the module reads in docstrings from a docstring
  dictionary in some different language, supplied separately  and replaces
  the English ones by those read in. There is a utility function
  write_docstringdict() to write a dictionary with the original (English)
  docstrings to disc, so it can serve as a template for translations.
 
Behind the scenes there are some features included with possible
extensions in mind. These will be commented and documented elsewhere.
 
s5turtle 1.0b1 - for Python 2.6   -  30. 5. 2008, 18:08iÿÿÿÿN(tisfiletsplittjoin(tdeepcopy(t*tScrolledCanvast TurtleScreentScreent    RawTurtletTurtletRawPentPentShapetVec2Dtaddshapetbgcolortbgpictbyet clearscreent    colormodetdelayt exitonclickt    getcanvast    getshapestlistentmodetonkeyt onscreenclicktontimertregister_shapet resetscreent
screensizetsetuptsetworldcoordinatesttitlettracertturtlestupdatet window_heightt window_widthtbacktbackwardt
begin_fillt
begin_polytbktcircletcleart
clearstampt clearstampstclonetcolortdegreestdistancetdottdowntend_filltend_polytfdtfillt    fillcolortforwardtget_polytgetpent    getscreent    getturtletgototheadingt
hideturtlethomethttisdownt    isvisibletlefttlttonclicktondragt    onreleasetpdtpentpencolortpendowntpensizetpenuptpostpositiontputradianstrighttresett
resizemodetrttsetht
setheadingtsetpost setpositiont settiltanglet setundobuffertsetxtsetytshapet    shapesizet
showturtletspeedtsttstampttiltt    tiltanglettowardst
turtlesizetundotundobufferentriestuptwidthtwritetxcortycortwrite_docstringdicttdonetmainlooptacostasintatantatan2tceiltcostcoshtetexptfabstfloortfmodtfrexpthypottldexptlogtlog10tmodftpitpowtsintsinhtsqrtttanttanhgà?gè?theightit    canvwidthi,t
canvheightt    leftrightt    topbottomtstandardgð?i
iètundobuffersizetclassictblacktnoresizetvisibletenglishtlanguagetturtlet exampleturtletscreent examplescreensPython Turtle Graphicst
using_IDLEcCst|dƒ}|jƒ}|jƒi}xÝ|D]Õ}|jƒ}| s2|jdƒr`q2ny|jdƒ\}}Wnd||fGHq2nX|jƒ}|jƒ}|d krÈt|ƒ}n5y+d
|kræt|ƒ}n t|ƒ}WnnX|||<q2W|S( s/Convert content of config-file into dictionary.trt#t=sBad line in config-file %s:
%stTruetFalsetNones''s""t.(sTruesFalsesNones''s""(    topent    readlinestclosetstript
startswithRtevaltfloattint(tfilenametftcfglinestcfgdicttlinetkeytvalue((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt config_dict·s2 
      cCs¸d}i}i}t|ƒr-t|ƒ}nd|krJd|d}ny%ttƒ\}}t||ƒ}Wn d}nXt|ƒršt|ƒ}ntj|ƒtj|ƒdS(s@Read config-files, change configuration-dict accordingly.
 
    If there is a turtle.cfg file in the current working directory,
    read it from there. If this contains an importconfig-value,
    say 'myway', construct filename turtle_mayway.cfg else use
    turtle.cfg and read it from the import-directory, where
    turtle.py is located.
    Update configuration dictionary first according to config-file,
    in the import directory, then according to config-file in the
    current working directory.
    If no config-file is found, the default configuration is used.
    s
turtle.cfgt importconfigs turtle_%s.cfgtN(RR¸Rt__file__Rt_CFGR%(R´t default_cfgtcfgdict1tcfgdict2theadttailt    cfg_file2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
readconfigÕs    
  s"No configfile read, reason unknowncBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( s¯A 2 dimensional vector class, used as a helper class
    for implementing turtle graphics.
    May be useful for turtle graphics programs also.
    Derived from tuple, so a vector is a tuple!
 
    Provides (for a, b vectors, k number):
       a+b vector addition
       a-b vector subtraction
       a*b inner product
       k*a and a*k multiplication with scalar
       |a| absolute value of a
       a.rotate(angle) rotation
    cCstj|||fƒS(N(ttuplet__new__(tclstxty((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÅscCs%t|d|d|d|dƒS(Nii(R (tselftother((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__add__scCsLt|tƒr/|d|d|d|dSt|d||d|ƒS(Nii(t
isinstanceR (RÉRÊ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__mul__s cCs?t|tƒst|tƒr;t|d||d|ƒSdS(Nii(RÌR°R¯R (RÉRÊ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__rmul__scCs%t|d|d|d|dƒS(Nii(R (RÉRÊ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__sub__scCst|d |d ƒS(Nii(R (RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__neg__scCs|dd|dddS(Niiigà?((RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__abs__scCs}t|d |dƒ}|tjd}tj|ƒtj|ƒ}}t|d||d||d||d|ƒS(s.rotate self counterclockwise by angle
        iig€f@(R tmathR‰R|R‹(RÉtangletperptcts((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytrotatescCs|d|dfS(Nii((RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__getnewargs__&scCsd|S(Ns (%.2f,%.2f)((RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__repr__(s( t__name__t
__module__t__doc__RÅRËRÍRÎRÏRÐRÑR×RØRÙ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR s                                     cCs}t|jƒ}|jƒx|D]}t||ƒq Wx?|jjƒD].\}}t|ƒtjkrG|||<qGqGWdS(s#helper function for Scrolled CanvasN(    tlistt    __bases__treverset __methodDictt__dict__titemsttypettypest FunctionType(RÆt_dicttbaseListt_superR¶R·((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRà4s
 cCsi}t||ƒ|jƒS(s#helper function for Scrolled Canvas(Ràtkeys(RÆRæ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    __methods>s s*def %(method)s(self, *args, **kw): return s*self.%(attribute)s.%(method)s(*args, **kw)c
Bs&i}e||ƒx>|jƒD]0}|d dksF|ddkr ||=q q Wx$|D]}||kr[||=q[q[Wx*e|ƒD]}||krˆ||=qˆqˆWxw|jƒD]i\}}i|d6|d6}e|ƒejkrei|d6|d6}    n|    |U|||j|<qµWdS(snHelper functions for Scrolled Canvas, used to forward
    ScrolledCanvas-methods to Tkinter.Canvas class.
    it_iÿÿÿÿtmethodtfunct    attributeN(    RàRéRêRâRãRät
StringTypet __stringBodyRá(
t    fromClassttoClassttoParttexcludeRætexRìRítdt
execString((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt__forwardmethodsHs"     cBs}eZdZddddd„Zdddd„Zd„Zd„Zd„Zd    „Z    d
„Z
d „Z d „Z d „Z RS(sÄModeled after the scrolled canvas class from Grayons's Tkinter book.
 
    Used as the default canvas, which pops up automatically when
    using turtle graphics functions or the Turtle class.
    iôi^iXcCs
tjj||d|d|ƒ|jƒ|_|||_|_|||_|_d|_    tj
|d|d|d|j    dtj ddƒ|_ tj |d|j jd    tjƒ|_tj |d|j jƒ|_|j jd
|jjd |jjƒ|jd d ddd ƒ|jd d ddd ƒ|j jddd|dddd dd ddddddƒ|jjddd|dddd ddddddddƒ|jjddd|dddddd ddddddƒ|jƒ|jjd|jƒdS(NRpRtwhitetbgtrelieft borderwidthitcommandtorienttxscrollcommandtyscrollcommanditweightitminsizetpadxtin_tpadytrowtcolumntrowspant
columnspantstickytnewss <Configure>(tTKtFramet__init__twinfo_toplevelt _rootwindowRpRR‘R’RútCanvastSUNKENt_canvast    Scrollbartxviewt
HORIZONTALthscrolltyviewtvscrollt    configuretsett rowconfiguretcolumnconfiguretgridRXtbindtonResize(RÉtmasterRpRR‘R’((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRgs,     $$$
c    CsÙ|r||_n|r$||_n|r6||_n|jjd|d|j d|j d|jd|jdfƒ|jjd|j|jd|jƒ|jjd|j|jd|jƒ|j    ƒdS(s<Adjust canvas and scrollbars according to given canvas size.Rút scrollregionigà?iN(
R‘R’RúRtconfigt xview_movetoRpt yview_movetoRt adjustScrolls(RÉR‘R’Rú((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRX€s     cCs|jjƒ}|jjƒ}|jjd|j||jƒ|jjd|j||jƒ||jks€||jkrý|jjddd|ddddddd    dd
dd d ƒ|j    jddd|ddddddd    dd
dd d ƒn|jj
ƒ|j    j
ƒd S(sA Adjust scrollbars according to window- and canvas-size.
        gà?RiRRRRiRR    R
R N( Rt winfo_widtht winfo_heightR$R‘R%R’RRRt grid_forget(RÉtcwidthtcheight((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR&’s""$$ cCs|jƒdS(sself-explanatoryN(R&(RÉtevent((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR ¢scGs|jj|ŒS(s@ 'forward' method, which canvas itself has inherited...
        (Rtbbox(RÉtargs((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR-¦scOs|jj||ŽS(s@ 'forward' method, which canvas itself has inherited...
        (Rtcget(RÉR.tkwargs((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR/«scOs|jj||ŽdS(s@ 'forward' method, which canvas itself has inherited...
        N(RR#(RÉR.R0((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR#°scOs|jj||ŽdS(s@ 'forward' method, which canvas itself has inherited...
        N(RR(RÉR.R0((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRµscOs|jj||ŽdS(s@ 'forward' method, which canvas itself has inherited...
        N(Rtunbind(RÉR.R0((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR1ºscCs|jjƒdS(s@ 'forward' method, which canvas itself has inherited...
        N(Rt focus_force(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR2¿sN(RÚRÛRÜRR§RXR&R R-R/R#RR1R2(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRas                            Rt_RootcBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    RS(s'Root class for Screen based on Tkinter.cCstjj|ƒdS(N(R tTkR(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÉscCs8t|||||ƒ|_|jjddddƒdS(NtexpandiR:tboth(RRtpack(RÉRpRR*R+((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt setupcanvasÌscCs|jS(N(R(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_getcanvasÐscCs!|jd||||fƒdS(Ns %dx%d%+d%+d(tgeometry(RÉRpRtstartxtstarty((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt set_geometryÓscCs|jd|ƒdS(NtWM_DELETE_WINDOW(t wm_protocol(RÉtdestroy((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    ondestroyÖscCs
|jƒS(N(twinfo_screenwidth(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    win_widthÙscCs
|jƒS(N(twinfo_screenheight(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
win_heightÜs(
RÚRÛRÜRR8R9R=RARCRE(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR3Çs                        tTurtleScreenBasecBs[eZdZed„ƒZed„ƒZd„Zd„Zddde    d„Z
d„Z ddde    d„Z d„Z d    „Zd
„Zd „Zdd „Zd „Zddd„Zddd„Zddd„Zddd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z dddd„Z!d„Z"RS( sàProvide the basic graphics functionality.
       Interface between Tkinter and turtle.py.
 
       To port turtle.py to some different graphics toolkit
       a corresponding TurtleScreenBase class has to be implemented.
    cCs&tjddddƒ}|jƒ|S(s$return a blank image object
        RpiR(R t
PhotoImagetblank(timg((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _blankimageês
cCstjd|ƒS(s`return an image object containing the
        imagedata from a gif-file named filename.
        tfile(R RG(R±((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_imageòscCsº||_t|tƒr3|jj}|jj}nat|jjdƒƒ}t|jjdƒƒ}|jjd| d| d|d|dfƒ||_||_d|_|_    dS(NRpRR"igð?(
tcvRÌRR‘R’R°R/R#txscaletyscale(RÉRMtwth((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRùs     1        cCs|jjdddddƒS(s<Create an invisible polygon item on canvas self.cv)
        iR:Rºtoutline(iiiiii(RMtcreate_polygon(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _createpolysc
Csåg}x=|D]5\}}    |j||jƒ|j|     |jƒq W|jj||Œ|dk    r~|jj|d|ƒn|dk    r£|jj|d|ƒn|dk    rÈ|jj|d|ƒn|rá|jj|ƒndS(s`Configure polygonitem polyitem according to provided
        arguments:
        coordlist is sequence of coordinates
        fill is filling color
        outline is outline color
        top is a boolean value, which specifies if polyitem
        will be put on top of the canvas' displaylist so it
        will not be covered by other items.
        R:RRRpN(tappendRNRORMtcoordsR§t itemconfiguret    tag_raise(
RÉtpolyitemt    coordlistR:RRRpttoptclRÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    _drawpoly s    c Cs.|jjdddddddddtjƒS(s9Create an invisible line item on canvas self.cv)
        iR:RºRpitcapstyle(RMt create_lineR tROUND(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _createline$s$c    CsÏ|dk    rhg}x=|D]5\}}|j||jƒ|j| |jƒqW|jj||Œn|dk    r|jj|d|ƒn|dk    r²|jj|d|ƒn|rË|jj|ƒndS(sQConfigure lineitem according to provided arguments:
        coordlist is sequence of coordinates
        fill is drawing color
        width is width of drawn line.
        top is a boolean value, which specifies if polyitem
        will be put on top of the canvas' displaylist so it
        will not be covered by other items.
        R:RpN(R§RURNRORMRVRWRX(    RÉtlineitemRZR:RpR[R\RÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    _drawline*s
  cCs|jj|ƒdS(s]Delete graphics item from canvas.
        If item is"all" delete all graphics items.
        N(RMtdelete(RÉtitem((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_deleteAscCs|jjƒdS(s(Redraw graphics items on canvas
        N(RMR%(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_updateGscCs|jj|ƒdS(s-Delay subsequent canvas actions for delay ms.N(RMtafter(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_delayLscCs=y|jj|ƒ}t}Wntjk
r8t}nX|S(sCCheck if the string color is a legal Tkinter color string.
        (RMt    winfo_rgbR¥R tTclErrorR¦(RÉR2trgbtok((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_iscolorstringPs 
 
cCs@|dk    r,|jjd|ƒ|jƒn|jjdƒSdS(sVSet canvas' backgroundcolor if color is not None,
        else return backgroundcolor.RúN(R§RMR#RgR/(RÉR2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_bgcolorZs  c Cs°|\}}||j}||j}idd6dd6dd6}|jj|d| d|d    ||d
|d |ƒ}    |jj|    ƒ\}
} } } |jjƒ|    | dfS( sWrite txt at pos in canvas with specified font
        and color.
        Return text item and x-coord of right bottom corner
        of text's bounding box.tswRHRÖtcentertseRWittexttanchorR:tfont(RNRORMt create_textR-R%(RÉRSttxttalignRuRORÇRÈRtRetx0ty0tx1ty1((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_writecs   ' icsYˆdkr&ˆjj|d|ƒn/‡‡fd†}ˆjj|d|||ƒdS(sÚBind fun to mouse-click event on turtle.
        fun must be a function with two arguments, the coordinates
        of the clicked point on the canvas.
        num, the number of the mouse-button defaults to 1
        s <Button-%s>csKˆjj|jƒˆjˆjj|jƒ ˆj}}ˆ||ƒdS(N(RMtcanvasxRÇRNtcanvasyRÈRO(R,RÇRÈ(tfunRÉ(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyteventfun~s!N(R§RMt
tag_unbindttag_bind(RÉReR€tnumtaddR((R€RÉsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_onclickus csYˆdkr&ˆjj|d|ƒn/‡‡fd†}ˆjj|d|||ƒdS(sgBind fun to mouse-button-release event on turtle.
        fun must be a function with two arguments, the coordinates
        of the point on the canvas where mouse button is released.
        num, the number of the mouse-button defaults to 1
 
        If a turtle is clicked, first _onclick-event will be performed,
        then _onscreensclick-event.
        s<Button%s-ButtonRelease>csKˆjj|jƒˆjˆjj|jƒ ˆj}}ˆ||ƒdS(N(RMR~RÇRNRRÈRO(R,RÇRÈ(R€RÉ(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRs!N(R§RMR‚Rƒ(RÉReR€R„R…R((R€RÉsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_onrelease„s
    csYˆdkr&ˆjj|d|ƒn/‡‡fd†}ˆjj|d|||ƒdS(sqBind fun to mouse-move-event (with pressed mouse button) on turtle.
        fun must be a function with two arguments, the coordinates of the
        actual mouse position on the canvas.
        num, the number of the mouse-button defaults to 1
 
        Every sequence of mouse-move-events on a turtle is preceded by a
        mouse-click event on that turtle.
        s<Button%s-Motion>csYyKˆjj|jƒˆjˆjj|jƒ ˆj}}ˆ||ƒWnnXdS(N(RMR~RÇRNRRÈRO(R,RÇRÈ(R€RÉ(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR£s !N(R§RMR‚Rƒ(RÉReR€R„R…R((R€RÉsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_ondrag—s     csSˆdkr#ˆjjd|ƒn,‡‡fd†}ˆjjd|||ƒdS(sGBind fun to mouse-click event on canvas.
        fun must be a function with two arguments, the coordinates
        of the clicked point on the canvas.
        num, the number of the mouse-button defaults to 1
 
        If a turtle is clicked, first _onclick-event will be performed,
        then _onscreensclick-event.
        s <Button-%s>csKˆjj|jƒˆjˆjj|jƒ ˆj}}ˆ||ƒdS(N(RMR~RÇRNRRÈRO(R,RÇRÈ(R€RÉ(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR¸s!N(R§RMR1R(RÉR€R„R…R((R€RÉsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_onscreenclick¬s     csPˆdkr&|jjd|dƒn&‡fd†}|jjd||ƒdS(s`Bind fun to key-release event of key.
        Canvas must have focus. See method listen
        s<KeyRelease-%s>cs ˆƒdS(N((R,(R€(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÅsN(R§RMR1R(RÉR€R¶R((R€sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_onkey¾s cCs|jjƒdS(s=Set focus on canvas (in order to collect key-events)
        N(RMR2(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_listenÉscCs6|dkr|jj|ƒn|jj||ƒdS(s?Install a timer, which calls fun after t milliseconds.
        iN(RMt
after_idleRh(RÉR€tt((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_ontimerÎs cCs|jjddd|ƒS(s0Create and return image item on canvas.
        itimage(RMt create_image(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _createimageÖscCsN|\}}|jj|||j| |jfƒ|jj|d|ƒdS(sZConfigure image item as to draw image object
        at position (x,y) on canvas)
        RN(RMRVRNROt
itemconfig(RÉRet.2RRÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_drawimageÛs    (cCs*|jj|d|ƒ|jj|ƒdS(s³Configure image item as to draw image object
        at center of canvas. Set item to the first item
        in the displaylist, so it will be drawn below
        any other item .RN(RMR’t    tag_lower(RÉReR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    _setbgpicâscCs|jj|ƒS(sQReturn 'line' or 'polygon' or 'image' depending on
        type of item.
        (RMRã(RÉRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_typeêscCsT|jj|ƒ}gtdt|ƒdƒD]}||||d f^q+}|S(s returns list of coordinate-pairs of points of item
        Example (for insiders):
        >>> from turtle import *
        >>> getscreen()._pointlist(getturtle().turtle._item)
        [(0.0, 9.9999999999999982), (0.0, -9.9999999999999982),
        (9.9999999999999982, 0.0)]
        >>> iii(RMRVtrangetlen(RÉReR\titpl((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_pointlistðs>cCs#|jjd||||fƒdS(NR"(RMR#(RÉtsrx1tsry1tsrx2tsry2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_setscrollregionüsc    Cs˜|jjƒ}x‚|D]z}|jj|ƒ}g}xF|r||d \}}|j||ƒ|j||ƒ|d}q7W|jj||ŒqWdS(Ni(RMtfind_allRVRU(    RÉt xscalefactort yscalefactorRâRet coordinatest newcoordlistRÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_rescaleÿs     cCs©t|jtƒs"|j|jfS||koD|koDdknr_|jj|jjfS|dk    rw||_n|dk    r||_n|jj|||ƒdS(saResize the canvas the turtles are drawing on. Does
        not alter the drawing window.
        N(RÌRMRR‘R’R§RX(RÉR‘R’Rú((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_resize s'    cCs`|jjƒ}|dkr+|jd}n|jjƒ}|dkrV|jd}n||fS(s; Return the width and height of the turtle window.
        iRpR(RMR'R((RÉRpR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _window_sizes  N(#RÚRÛRÜt staticmethodRJRLRRTR§R¦R]RaRcRfRgRiRnRoR}R†R‡RˆR‰RŠR‹RŽR‘R”R–R—RœR¡R§R¨R©(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRFâs@                            
                                                t
TerminatorcBseZdZRS(s¶Will be raised in TurtleScreen.update, if _RUNNING becomes False.
 
    This stops execution of a turtle graphics script.
    Main purpose: use in the Demo-Viewer turtle.Demo.py.
    (RÚRÛRÜ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR«+stTurtleGraphicsErrorcBseZdZRS(sSome TurtleGraphics Error
    (RÚRÛRÜ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR¬4scBs&eZdZdd„Zdd„ZRS(sàData structure modeling shapes.
 
    attribute _type is one of "polygon", "image", "compound"
    attribute _data is - depending on _type a poygon-tuple,
    an image or a list constructed using the addcomponent method.
    cCs¼||_|dkr6t|tƒr¯t|ƒ}q¯ny|dkrŠt|tƒr¯|jƒjdƒr‡t|ƒr‡tj    |ƒ}q‡q¯n%|dkrŸg}nt
d|ƒ‚||_ dS(NtpolygonRs.giftcompoundsThere is no shape type %s( R—RÌRÝRÄtstrtlowertendswithRRRLR¬t_data(RÉttype_tdata((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR@s      !     cCsW|jdkr%td|jƒ‚n|dkr:|}n|jj|||gƒdS(s-Add component to a shape of type compound.
 
        Arguments: poly is a polygon, i. e. a tuple of number pairs.
        fill is the fillcolor of the component,
        outline is the outline color of the component.
 
        call (for a Shapeobject namend s):
        --   s.addcomponent(((0,0), (10,10), (-10,10)), "red", "blue")
 
        Example:
        >>> poly = ((0,0),(10,-5),(0,10),(-10,-5))
        >>> s = Shape("compound")
        >>> s.addcomponent(poly, "red", "blue")
        >>> # .. add more components and then use register_shape()
        R®s Cannot add component to %s ShapeN(R—R¬R§R²RU(RÉtpolyR:RR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt addcomponentPs      N(RÚRÛRÜR§RR¶(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR 9s tTbuffercBsJeZdZdd„Zdd„Zd„Zd„Zd„Zd„Z    RS(    s5Ring buffer used as undobuffer for RawTurtle objects.i
cCs2||_dgg||_d|_t|_dS(Niÿÿÿÿ(tbufsizeR§tbuffertptrR¦tcumulate(RÉR¸((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRjs        cCsb|dkr9xFt|jƒD]}dg|j|<qWn||_dgg||_d|_dS(Niÿÿÿÿ(R§R˜R¸R¹Rº(RÉR¸Rš((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRXos      cCs`|jdkr\|jsB|jd|j|_||j|j<q\|j|jj|ƒndS(Nii(R¸R»RºR¹RU(RÉRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytpushws
    cCsd|jdkr`|j|j}|dkr/dSdg|j|j<|jd|j|_|SndS(Nii(R¸R¹RºR§(RÉRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytpop~s cCs|j|jjdgƒS(N(R¸R¹tcountR§(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt nr_of_items‡scCst|jƒdt|jƒS(Nt (R¯R¹Rº(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRىsN(
RÚRÛRÜRR§RXR¼R½R¿RÙ(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR·hs                  cBsOeZdZeZedededd„Zd„Zdd„Z    d„Z
dd„Z d    „Z d
„Z dd „Zd „Zd „Zd„Zddd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zddd„Zd„Zddd„Zdd„Zdd„Zdddd„ZeZ eZ!eZ"e Z#RS( sÏProvides screen oriented methods like setbg etc.
 
    Only relies upon the methods of TurtleScreenBase and NOT
    upon components of the underlying graphics toolkit -
    which is Tkinter in this case.
    RRRcCsƒitdd/d0d1fƒd6tdd2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIfƒd6tddJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]fƒd$6tdd^d_d`dafƒd%6tddbdcddfƒd(6tddedfdgdhfƒd)6td*|jƒƒd+6|_id,d-6|_tj||ƒ||_||_td.|_    g|_
|j ƒdS(iNR­iöÿÿÿii
tarrowiiþÿÿÿiiÿÿÿÿiüÿÿÿiiùÿÿÿi    i÷ÿÿÿiiúÿÿÿiiiûÿÿÿiýÿÿÿiøÿÿÿiiiRg…ëQ¸#@g¸…ëQ¸@g®Gáz. @g…ëQ¸…@g¸…ëQ¸Àg…ëQ¸…Àg®Gáz. Àg…ëQ¸#Àg€g$ÀR-tsquareg®GázÀgš™™™™'@ttriangleR—RRHRºtnopicR(iöÿÿÿi(i
i(ii
(ii(iþÿÿÿi(iÿÿÿÿi
(iüÿÿÿi(iùÿÿÿi    (i÷ÿÿÿi(iúÿÿÿi(iùÿÿÿi(iûÿÿÿiýÿÿÿ(iøÿÿÿiúÿÿÿ(iúÿÿÿiøÿÿÿ(iüÿÿÿiûÿÿÿ(iiùÿÿÿ(iiûÿÿÿ(iiøÿÿÿ(iiúÿÿÿ(iiýÿÿÿ(ii(ii(i    i(ii    (ii(ii
(ii(i
i(g…ëQ¸#@g¸…ëQ¸@(g®Gáz. @g…ëQ¸…@(g…ëQ¸…@g®Gáz. @(g¸…ëQ¸@g…ëQ¸#@(ii
(g¸…ëQ¸Àg…ëQ¸#@(g…ëQ¸…Àg®Gáz. @(g®Gáz. Àg…ëQ¸…@(g…ëQ¸#Àg¸…ëQ¸@(iöÿÿÿi(g…ëQ¸#Àg¸…ëQ¸À(g®Gáz. Àg…ëQ¸…À(g…ëQ¸…Àg®Gáz. À(g¸…ëQ¸Àg…ëQ¸#À(g€g$À(g¸…ëQ¸@g…ëQ¸#À(g…ëQ¸…@g®Gáz. À(g®Gáz. @g…ëQ¸…À(g…ëQ¸#@g¸…ëQ¸À(i
iöÿÿÿ(i
i
(iöÿÿÿi
(iöÿÿÿiöÿÿÿ(i
g®GázÀ(igš™™™™'@(iöÿÿÿg®GázÀ(ii(iûÿÿÿi÷ÿÿÿ(iiùÿÿÿ(ii÷ÿÿÿ( R RJt_shapest_bgpicsRFRt_modet _delayvalueR¼t
_colormodet_keysR.(RÉRMRRR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR˜s4                           cCs½td|_td|_|jdƒ|jdƒ|_d|_d|_d|_g|_    |j
dƒxd D]}|j d |ƒqqWx"|j D]}|jd |ƒq–Wd t_d S( sqDelete all drawings and all turtles from the TurtleScreen.
 
        Reset empty TurtleScreen to its initial state: white background,
        no backgroundimage, no eventbindings and tracing on.
 
        No argument.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.clear()
 
        Note: this method is not available as function.
        RRtallRºRÄiiRùiiN(iii(R¼RÈRÉRfR‘t_bgpict
_bgpicnamet_tracingt_updatecountert_turtlesRRJR§RÊRR    t_pen(RÉtbtnR¶((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR.¸s                     cCs¨|dkr|jS|jƒ}|dkr>td|ƒ‚n||_|d    krš|j|j d|j d|jd|jdƒd|_|_n|j    ƒdS(
sgSet turtle-mode ('standard', 'logo' or 'world') and perform reset.
 
        Optional argument:
        mode -- on of the strings 'standard', 'logo' or 'world'
 
        Mode 'standard' is compatible with turtle.py.
        Mode 'logo' is compatible with most Logo-Turtle-Graphics.
        Mode 'world' uses userdefined 'worldcoordinates'. *Attention*: in
        this mode angles appear distorted if x/y unit-ratio doesn't equal 1.
        If mode is not given, return the current mode.
 
             Mode      Initial turtle heading     positive angles
         ------------|-------------------------|-------------------
          'standard'    to the right (east)       counterclockwise
            'logo'        upward    (north)         clockwise
 
        Examples:
        >>> mode('logo')   # resets turtle heading to north
        >>> mode()
        'logo'
        R•tlogotworldsNo turtle-graphics-mode %sigð?N(R•RÓRÔ(R•RÓ(
R§RÇR°R¬R¡R‘R’RNRORX(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÔs        cCs|jƒdkr"|jdƒnt||ƒ}t||ƒ}|jƒ\}}|j|d|dƒ|j|j}    }
|j||_|j||_||j} | |j} |j| } |j| }|j| | | |ƒ|j    |j|    |j|
ƒ|j
ƒdS(ssSet up a user defined coordinate-system.
 
        Arguments:
        llx -- a number, x-coordinate of lower left corner of canvas
        lly -- a number, y-coordinate of lower left corner of canvas
        urx -- a number, x-coordinate of upper right corner of canvas
        ury -- a number, y-coordinate of upper right corner of canvas
 
        Set up user coodinat-system and switch to mode 'world' if necessary.
        This performs a screen.reset. If mode 'world' is already active,
        all drawings are redrawn according to the new coordinates.
 
        But ATTENTION: in user-defined coordinatesystems angles may appear
        distorted. (see Screen.mode())
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.setworldcoordinates(-10,-0.5,50,1.5)
        >>> for _ in range(36):
        ...     left(10)
        ...     forward(0.5)
        RÔiN( RR¯R©RRNROR‘R’R¡R§R%(RÉtllxtllyturxturytxspantyspantwxtwyt    oldxscalet    oldyscaleRRžRŸR ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR!ös    cCs|dkrO|jƒjdƒr<td|j|ƒƒ}qptddƒ‚n!t|tƒrptd|ƒ}n||j|<dS(s¥Adds a turtle shape to TurtleScreen's shapelist.
 
        Arguments:
        (1) name is the name of a gif-file and shape is None.
            Installs the corresponding image shape.
            !! Image-shapes DO NOT rotate when turning the turtle,
            !! so they do not display the heading of the turtle!
        (2) name is an arbitrary string and shape is a tuple
            of pairs of coordinates. Installs the corresponding
            polygon shape
        (3) name is an arbitrary string and shape is a
            (compound) Shape object. Installs the corresponding
            compound shape.
        To use a shape, you have to issue the command shape(shapename).
 
        call: register_shape("turtle.gif")
        --or: register_shape("tri", ((0,0), (10,10), (-10,10)))
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.register_shape("triangle", ((5,-3),(0,5),(-5,-3)))
 
        s.gifRs"Bad arguments for register_shape.
sUse  help(register_shape)R­N(    R§R°R±R RLR¬RÌRÄRÅ(RÉtnameRc((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRs  c
Cs^t|ƒdkr|d}nt|tƒrf|j|ƒsI|dkrM|Stdt|ƒƒ‚ny|\}}}Wntdt|ƒƒ‚nX|jdkràg|||fD]}td|ƒ^q¸\}}}nd|ko÷dkno1d|kodkno1d|ko/dknsMtd    t|ƒƒ‚nd
|||fS( sReturn color string corresponding to args.
 
        Argument may be a string or a tuple of three
        numbers corresponding to actual colormode,
        i.e. in the range 0<=n<=colormode.
 
        If the argument doesn't represent a color,
        an error is raised.
        iiRºsbad color string: %ssbad color arguments: %sgð?gào@iÿsbad color sequence: %ss #%02x%02x%02x(R™RÌR¯RnR¬RÉtround(RÉR2R¢tgtbRÇ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    _colorstrAs
 8TcCsÐ|jdƒs|St|ƒdkrUgd D] }t|||d!dƒ^q,}nSt|ƒdkr˜g|dD]}dt||dƒ^qr}ntd    |ƒ‚tg|D]}||jd
^q²ƒS( NR£iiiiiiisbad colorstring: %siÿ(iii(R­R™R°R¬RÄRÉ(RÉtcstrRšR\RQRÕ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_color\s01cCsS|dkr|jS|dkr1t|ƒ|_n|dkrOt|ƒ|_ndS(sqReturn the colormode or set it to 1.0 or 255.
 
        Optional argument:
        cmode -- one of the values 1.0 or 255
 
        r, g, b values of colortriples have to be in range 0..cmode.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.colormode()
        1.0
        >>> screen.colormode(255)
        >>> pencolor(240,160,80)
        gð?iÿN(R§RÉR¯R°(RÉtcmode((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRgs    cCs2x+|jD] }|j|jƒ|jƒq
WdS(s®Reset all Turtles on the Screen to their initial state.
 
        No argument.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.reset()
        N(RÐt_setmodeRÇRX(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRX|scCs|jS(s»Return the list of turtles on the screen.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.turtles()
        [<turtle.Turtle object at 0x00E11FB0>]
        (RÐ(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR$ˆscGsO|r|j|ƒ}nd}|j|ƒ}|dk    rK|j|ƒ}n|S(sŸSet or return backgroundcolor of the TurtleScreen.
 
        Arguments (if given): a color string or three numbers
        in the range 0..colormode or a 3-tuple of such numbers.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.bgcolor("orange")
        >>> screen.bgcolor()
        'orange'
        >>> screen.bgcolor(0.5,0,0.5)
        >>> screen.bgcolor()
        '#800080'
        N(RãR§RoRå(RÉR.R2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR‘s cCsc|dkr|jSt|ƒ|_d|_|dk    rIt|ƒ|_n|jr_|jƒndS(seTurns turtle animation on/off and set delay for update drawings.
 
        Optional arguments:
        n -- nonnegative  integer
        delay -- nonnegative  integer
 
        If n is given, only each n-th regular screen update is really performed.
        (Can be used to accelerate the drawing of complex graphics.)
        Second arguments sets delay value (see RawTurtle.delay())
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.tracer(8, 25)
        >>> dist = 2
        >>> for i in range(200):
        ...     fd(dist)
        ...     rt(90)
        ...     dist += 2
        iN(R§RÎR°RÏRÈR%(RÉtnR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR#¨s          cCs&|dkr|jSt|ƒ|_dS(sø Return or set the drawing delay in milliseconds.
 
        Optional argument:
        delay -- positive integer
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.delay(15)
        >>> screen.delay()
        15
        N(R§RÈR°(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÄs cCsRtjstt_t‚n|jdkrN|jd7_|j|j;_ndS(sIncrement upadate counter.iiN(Rt_RUNNINGR¥t    _RUNNNINGR«RÎRÏ(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _incrementudcÓs             cCsT|j}t|_x(|jƒD]}|jƒ|jƒqW||_|jƒdS(s'Perform a TurtleScreen update.
        N(RÎR¥R$t _update_datat _drawturtleRg(RÉttracingR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR%Üs        
    cCs|jƒdS(s› Return the width of the turtle window.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.window_width()
        640
        i(R©(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR'çscCs|jƒdS(s Return the height of the turtle window.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.window_height()
        480
        i(R©(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR&ðscCs|jS(sçReturn the Canvas of this TurtleScreen.
 
        No argument.
 
        Example (for a Screen instance named screen):
        >>> cv = screen.getcanvas()
        >>> cv
        <turtle.ScrolledCanvas instance at 0x010742D8>
        (RM(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRùs
cCst|jjƒƒS(sðReturn a list of names of all currently available turtle shapes.
 
        No argument.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.getshapes()
        ['arrow', 'blank', 'circle', ... , 'turtle']
        (tsortedRÅRé(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRs    icCs|j|||ƒdS(sBind fun to mouse-click event on canvas.
 
        Arguments:
        fun -- a function with two arguments, the coordinates of the
               clicked point on the canvas.
        num -- the number of the mouse-button, defaults to 1
 
        Example (for a TurtleScreen instance named screen
        and a Turtle instance named turtle):
 
        >>> screen.onclick(goto)
        >>> # Subsequently clicking into the TurtleScreen will
        >>> # make the turtle move to the clicked point.
        >>> screen.onclick(None)
        N(R‰(RÉR€RÒR…((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRJscCsg|dkr1||jkrS|jj|ƒqSn"||jkrS|jj|ƒn|j||ƒdS(smBind fun to key-release event of key.
 
        Arguments:
        fun -- a function with no arguments
        key -- a string: key (e.g. "a") or key-symbol (e.g. "space")
 
        In order to be able to register key-events, TurtleScreen
        must have focus. (See method listen.)
 
        Example (for a TurtleScreen instance named screen):
 
        >>> def f():
        ...     fd(50)
        ...     lt(60)
        ...
        >>> screen.onkey(f, "Up")
        >>> screen.listen()
 
        Subsequently the turtle can be moved by repeatedly pressing
        the up-arrow key, consequently drawing a hexagon
 
        N(R§RÊtremoveRURŠ(RÉR€R¶((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR"s  cCs|jƒdS(sSet focus on TurtleScreen (in order to collect key-events)
 
        No arguments.
        Dummy arguments are provided in order
        to be able to pass listen to the onclick method.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.listen()
        N(R‹(RÉtxdummytydummy((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR@s
icCs|j||ƒdS(sïInstall a timer, which calls fun after t milliseconds.
 
        Arguments:
        fun -- a function with no arguments.
        t -- a number >= 0
 
        Example (for a TurtleScreen instance named screen):
 
        >>> running = True
        >>> def f():
        ...     if running:
        ...             fd(50)
        ...             lt(60)
        ...             screen.ontimer(f, 250)
        ...
        >>> f()   # makes the turtle marching around
        >>> running = False
        N(RŽ(RÉR€R((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRLscCsb|dkr|jS||jkr;|j|ƒ|j|<n|j|j|j|ƒ||_dS(sFSet background image or return name of current backgroundimage.
 
        Optional argument:
        picname -- a string, name of a gif-file or "nopic".
 
        If picname is a filename, set the corresponding image as background.
        If picname is "nopic", delete backgroundimage, if present.
        If picname is None, return the filename of the current backgroundimage.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.bgpic()
        'nopic'
        >>> screen.bgpic("landscape.gif")
        >>> screen.bgpic()
        'landscape.gif'
        N(R§RÍRÆRLR–RÌ(RÉtpicname((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRas  cCs|j|||ƒS(s×Resize the canvas the turtles are drawing on.
 
        Optional arguments:
        canvwidth -- positive integer, new width of canvas in pixels
        canvheight --  positive integer, new height of canvas in pixels
        bg -- colorstring or color-tuple, new backgroundcolor
        If no arguments are given, return current (canvaswidth, canvasheight)
 
        Do not alter the drawing window. To observe hidden parts of
        the canvas use the scrollbars. (Can make visible those parts
        of a drawing, which were outside the canvas before!)
 
        Example (for a Turtle instance named turtle):
        >>> turtle.screensize(2000,1500)
        >>> # e. g. to search for an erroneously escaped turtle ;-)
        (R¨(RÉR‘R’Rú((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRysN($RÚRÛRÜR¥RéR¼RR.R§RR!RRãRåRRXR$RR#RRëR%R'R&RRRJRRRRRRRRR(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRŽs@     "    ' $                                                                     t
TNavigatorcBs¬eZdZieddƒd6eddƒd6eddƒd6ZdZdZdZed„Zd    „Z    d%d
„Z d „Z d d „Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd%d„Zd„Zd„Zd„Zd%d„Zd%d„Zd„Zd „Z d%d%d!„Z!dd"„Z"d%d%d#„Z#d%d$„Z$eZ%eZ&eZ'eZ(eZ)eZ*eZ+eZ,e Z-RS(&sRNavigation part of the RawTurtle.
    Implements methods for turtle movement.
    gð?gR•RÔRÓiicCs[|j|_|j|_||_d|_|jƒd|_|j|ƒt    j
|ƒdS(N( tDEFAULT_ANGLEOFFSETt _angleOffsettDEFAULT_ANGLEORIENTt _angleOrientRÇR§t
undobufferR3RçRôRX(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRs          
     cCs)tddƒ|_tj|j|_dS(sXreset turtle to its initial values
 
        Will be overwritten by parent class
        gN(R t    _positionRôtSTART_ORIENTATIONRÇt_orient(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRX§scCsj|dkr|jS|d    kr#dS||_|d
krMd|_d|_n|jd|_d|_dS( s:Set turtle-mode to 'standard', 'world' or 'logo'.
        R•RÓRÔNiig@iÿÿÿÿ(sstandardslogosworld(sstandardsworld(R§RÇRöRøt _fullcircle(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRç¯s            cCsB||_d||_|jdkr1d|_n |d|_dS(s+Helper function for degrees() and radians()ihR•ig@N(Rýt _degreesPerAURÇRö(RÉt
fullcircle((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_setDegreesPerAU¾s
      g€v@cCs|j|ƒdS(s> Set angle measurement units to degrees.
 
        Optional argument:
        fullcircle -  a number
 
        Set angle measurement units, i. e. set number
        of 'degrees' for a full circle. Dafault value is
        360 degrees.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.left(90)
        >>> turtle.heading()
        90
 
        Change angle measurement unit to grad (also known as gon,
        grade, or gradian and equals 1/100-th of the right angle.)
        >>> turtle.degrees(400.0)
        >>> turtle.heading()
        100
 
        N(R(RÉRÿ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR3ÇscCs|jdtjƒdS(s Set the angle measurement units to radians.
 
        No arguments.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.heading()
        90
        >>> turtle.radians()
        >>> turtle.heading()
        1.5707963267948966
        iN(RRÒR‰(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRVßs cCs%|j|j|}|j|ƒdS(s)move turtle forward by specified distanceN(RúRüt_goto(RÉR4tende((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_goíscCs&||j9}|jj|ƒ|_dS(s=Turn turtle counterclockwise by specified angle if angle > 0.N(RþRüR×(RÉRÓ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_rotateòs cCs ||_dS(smove turtle to position end.N(Rú(RÉtend((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR÷scCs|j|ƒdS(sMove the turtle forward by the specified distance.
 
        Aliases: forward | fd
 
        Argument:
        distance -- a number (integer or float)
 
        Move the turtle forward by the specified distance, in the direction
        the turtle is headed.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.position()
        (0.00, 0.00)
        >>> turtle.forward(25)
        >>> turtle.position()
        (25.00,0.00)
        >>> turtle.forward(-75)
        >>> turtle.position()
        (-50.00,0.00)
        N(R(RÉR4((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR<ûscCs|j| ƒdS(sÏMove the turtle backward by distance.
 
        Aliases: back | backward | bk
 
        Argument:
        distance -- a number
 
        Move the turtle backward by distance ,opposite to the direction the
        turtle is headed. Do not change the turtle's heading.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.position()
        (0.00, 0.00)
        >>> turtle.backward(30)
        >>> turtle.position()
        (-30.00, 0.00)
        N(R(RÉR4((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR(scCs|j| ƒdS(sôTurn turtle right by angle units.
 
        Aliases: right | rt
 
        Argument:
        angle -- a number (integer or float)
 
        Turn turtle right by angle units. (Units are by default degrees,
        but can be set via the degrees() and radians() functions.)
        Angle orientation depends on mode. (See this.)
 
        Example (for a Turtle instance named turtle):
        >>> turtle.heading()
        22.0
        >>> turtle.right(45)
        >>> turtle.heading()
        337.0
        N(R(RÉRÓ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRW&scCs|j|ƒdS(sïTurn turtle left by angle units.
 
        Aliases: left | lt
 
        Argument:
        angle -- a number (integer or float)
 
        Turn turtle left by angle units. (Units are by default degrees,
        but can be set via the degrees() and radians() functions.)
        Angle orientation depends on mode. (See this.)
 
        Example (for a Turtle instance named turtle):
        >>> turtle.heading()
        22.0
        >>> turtle.left(45)
        >>> turtle.heading()
        67.0
        N(R(RÉRÓ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRH;scCs|jS(sæReturn the turtle's current location (x,y), as a Vec2D-vector.
 
        Aliases: pos | position
 
        No arguments.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pos()
        (0.00, 240.00)
        (Rú(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRSPs cCs |jdS(sö Return the turtle's x coordinate.
 
        No arguments.
 
        Example (for a Turtle instance named turtle):
        >>> reset()
        >>> turtle.left(60)
        >>> turtle.forward(100)
        >>> print turtle.xcor()
        50.0
        i(Rú(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRr]s cCs |jdS(s     Return the turtle's y coordinate
        ---
        No arguments.
 
        Example (for a Turtle instance named turtle):
        >>> reset()
        >>> turtle.left(60)
        >>> turtle.forward(100)
        >>> print turtle.ycor()
        86.6025403784
        i(Rú(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRsks cCs<|dkr"|jt|Œƒn|jt||ƒƒdS(stMove turtle to an absolute position.
 
        Aliases: setpos | setposition | goto:
 
        Arguments:
        x -- a number      or     a pair/vector of numbers
        y -- a number             None
 
        call: goto(x, y)         # two coordinates
        --or: goto((x, y))       # a pair (tuple) of coordinates
        --or: goto(vec)          # e.g. as returned by pos()
 
        Move turtle to an absolute position. If the pen is down,
        a line will be drawn. The turtle's orientation does not change.
 
        Example (for a Turtle instance named turtle):
        >>> tp = turtle.pos()
        >>> tp
        (0.00, 0.00)
        >>> turtle.setpos(60,30)
        >>> turtle.pos()
        (60.00,30.00)
        >>> turtle.setpos((20,80))
        >>> turtle.pos()
        (20.00,80.00)
        >>> turtle.setpos(tp)
        >>> turtle.pos()
        (0.00,0.00)
        N(R§RR (RÉRÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRAzs cCs!|jddƒ|jdƒdS(s$Move turtle to the origin - coordinates (0,0).
 
        No arguments.
 
        Move turtle to the origin - coordinates (0,0) and set its
        heading to its start-orientation (which depends on mode).
 
        Example (for a Turtle instance named turtle):
        >>> turtle.home()
        iN(RAR\(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRDs cCs!|jt||jdƒƒdS(s…Set the turtle's first coordinate to x
 
        Argument:
        x -- a number (integer or float)
 
        Set the turtle's first coordinate to x, leave second coordinate
        unchanged.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.position()
        (0.00, 240.00)
        >>> turtle.setx(10)
        >>> turtle.position()
        (10.00, 240.00)
        iN(RR Rú(RÉRÇ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRa«scCs!|jt|jd|ƒƒdS(s‡Set the turtle's second coordinate to y
 
        Argument:
        y -- a number (integer or float)
 
        Set the turtle's first coordinate to x, second coordinate remains
        unchanged.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.position()
        (0.00, 40.00)
        >>> turtle.sety(-10)
        >>> turtle.position()
        (0.00, -10.00)
        iN(RR Rú(RÉRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRb½scCs€|dk    rt||ƒ}nt|tƒr6|}n9t|tƒrTt|Œ}nt|tƒro|j}nt||jƒS(sëReturn the distance from the turtle to (x,y) in turtle step units.
 
        Arguments:
        x -- a number   or  a pair/vector of numbers   or   a turtle instance
        y -- a number       None                            None
 
        call: distance(x, y)         # two coordinates
        --or: distance((x, y))       # a pair (tuple) of coordinates
        --or: distance(vec)          # e.g. as returned by pos()
        --or: distance(mypen)        # where mypen is another turtle
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pos()
        (0.00, 0.00)
        >>> turtle.distance(30,40)
        50.0
        >>> pen = Turtle()
        >>> pen.forward(77)
        >>> turtle.distance(pen)
        77.0
        N(R§R RÌRÄRôRútabs(RÉRÇRÈRS((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR4Ïs      cCsÒ|dk    rt||ƒ}nt|tƒr6|}n9t|tƒrTt|Œ}nt|tƒro|j}n||j\}}ttj||ƒdtj    dƒd}||j
:}|j |j ||j S(sCReturn the angle of the line from the turtle's position to (x, y).
 
        Arguments:
        x -- a number   or  a pair/vector of numbers   or   a turtle instance
        y -- a number       None                            None
 
        call: distance(x, y)         # two coordinates
        --or: distance((x, y))       # a pair (tuple) of coordinates
        --or: distance(vec)          # e.g. as returned by pos()
        --or: distance(mypen)        # where mypen is another turtle
 
        Return the angle, between the line from turtle-position to position
        specified by x, y and the turtle's start orientation. (Depends on
        modes - "standard" or "logo")
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pos()
        (10.00, 10.00)
        >>> turtle.towards(0,0)
        225.0
        g€f@i
g€v@N(R§R RÌRÄRôRúRàRÒRzR‰RþRöRøRý(RÉRÇRÈRStresult((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRkïs      * cCs_|j\}}ttj||ƒdtjdƒd}||j:}|j|j||jS(s Return the turtle's current heading.
 
        No arguments.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.left(67)
        >>> turtle.heading()
        67.0
        g€f@i
g€v@(    RüRàRÒRzR‰RþRöRøRý(RÉRÇRÈR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRBs
* cCsK||jƒ|j}|j}||d||d}|j|ƒdS(sžSet the orientation of the turtle to to_angle.
 
        Aliases:  setheading | seth
 
        Argument:
        to_angle -- a number (integer or float)
 
        Set the orientation of the turtle to to_angle.
        Here are some common directions in degrees:
 
         standard - mode:          logo-mode:
        -------------------|--------------------
           0 - east                0 - north
          90 - north              90 - east
         180 - west              180 - south
         270 - south             270 - west
 
        Example (for a Turtle instance named turtle):
        >>> turtle.setheading(90)
        >>> turtle.heading()
        90
        g@N(RBRøRýR(RÉtto_angleRÓtfull((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR\!s    c Csõ|jr+|jjdgƒt|j_n|jƒ}|d krO|j}n|d krœt|ƒ|j}dtt    dt|ƒddƒ|ƒ}nd||}d|}d|t
j |t
j d    |j ƒ}|d
kr| | | }}}n|jƒ}    |jƒ}
|d
kr:|jd
d
ƒn |jd
ƒ|j|ƒxHt|ƒD]:} |j|ƒ|j|ƒ|jd
ƒ|j|ƒqaW|j| ƒ|d
krÌ|j|    |
ƒn|j|ƒ|jrñt|j_nd S( së Draw a circle with given radius.
 
        Arguments:
        radius -- a number
        extent (optional) -- a number
        steps (optional) -- an integer
 
        Draw a circle with given radius. The center is radius units left
        of the turtle; extent - an angle - determines which part of the
        circle is drawn. If extent is not given, draw the entire circle.
        If extent is not a full circle, one endpoint of the arc is the
        current pen position. Draw the arc in counterclockwise direction
        if radius is positive, otherwise in clockwise direction. Finally
        the direction of the turtle is changed by the amount of extent.
 
        As the circle is approximated by an inscribed regular polygon,
        steps determines the number of steps to use. If not given,
        it will be calculated automatically. Maybe used to draw regular
        polygons.
 
        call: circle(radius)                  # full circle
        --or: circle(radius, extent)          # arc
        --or: circle(radius, extent, steps)
        --or: circle(radius, steps=6)         # 6-sided polygon
 
        Example (for a Turtle instance named turtle):
        >>> turtle.circle(50)
        >>> turtle.circle(120, 180)  # semicircle
        tseqii g@g€M@gð?gà?g@g€f@iN(RùR¼R¥R»RfR§RýRR°tminRÒR‹R‰RþR#RiRR˜RR¦( RÉtradiustextenttstepsRftfracRPtw2tlttrtdlRš((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR-=s>        .
)               cCsdS(s/dummy method - to be overwritten by child classN((RÉRÖ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRf~scCsdS(s/dummy method - to be overwritten by child classN((RÉtaRâ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR#€scCsdS(s/dummy method - to be overwritten by child classN((RÉRè((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRi‚sN(.RÚRÛRÜR Rût DEFAULT_MODERõR÷RRXR§RçRR3RVRRRR<R(RWRHRSRrRsRARDRaRbR4RkRBR\R-RfR#RiR9R,R)RZRIRTR]R^R[(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRô‘sZ
                                                          #               #        A  tTPencBs eZdZedd„Zededd„Zdd„Zdd„Zd„Z    d    „Z
d
„Z dd „Z d „Z d „Zd„Zd„Zd„Zd„Zdd„Zed„Zeed„Zd„Zd„ZeZe    Ze    Ze
Ze
ZeZeZ RS(sFDrawing part of the RawTurtle.
    Implements drawing properties.
    RYcCs#||_d|_tj|ƒdS(N(t _resizemodeR§RùRt_reset(RÉRY((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR”s        ROR;cCsUd|_t|_||_||_t|_d|_d|_d|_d|_    dS(Niii(ii(
t_pensizeR¥t_shownt    _pencolort
_fillcolort_drawingt_speedt_stretchfactort_tiltt _outlinewidth(RÉROR;((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR™s                                cCsB|dkr|jS|jƒ}|dkr>|jd|ƒndS(szSet resizemode to one of the values: "auto", "user", "noresize".
 
        (Optional) Argument:
        rmode -- one of the strings "auto", "user", "noresize"
 
        Different resizemodes have the following effects:
          - "auto" adapts the appearance of the turtle
                   corresponding to the value of pensize.
          - "user" adapts the appearance of the turtle according to the
                   values of stretchfactor and outlinewidth (outline),
                   which are set by shapesize()
          - "noresize" no adaption of the turtle's appearance takes place.
        If no argument is given, return current resizemode.
        resizemode("user") is called by a call of shapesize with arguments.
 
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.resizemode("noresize")
        >>> turtle.resizemode()
        'noresize'
        tautotuserR™RYN(R"R#R™(R§RR°RN(RÉtrmode((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRY¦s
   cCs'|dkr|jS|jd|ƒdS(s!Set or return the line thickness.
 
        Aliases:  pensize | width
 
        Argument:
        width -- positive number
 
        Set the line thickness to width or return it. If resizemode is set
        to "auto" and turtleshape is a polygon, that polygon is drawn with
        the same line thickness. If no argument is given, current pensize
        is returned.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pensize()
        1
        >>> turtle.pensize(10)   # from here on lines of width 10 are drawn
        RQN(R§RRN(RÉRp((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRQÂs cCs!|js dS|jdtƒdS(s¼Pull the pen up -- no drawing when moving.
 
        Aliases: penup | pu | up
 
        No argument
 
        Example (for a Turtle instance named turtle):
        >>> turtle.penup()
        NRP(RRNR¦(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRRÙs
   cCs!|jr dS|jdtƒdS(sÂPull the pen down -- drawing when moving.
 
        Aliases: pendown | pd | down
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pendown()
        NRP(RRNR¥(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRPçs
   cCs|jS(sReturn True if pen is down, False if it's up.
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.penup()
        >>> turtle.isdown()
        False
        >>> turtle.pendown()
        >>> turtle.isdown()
        True
        (R(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRFõs cCs idd6dd6dd6dd6d    d
6}|dkr<|jS||krU||}n7d |kold knr†tt|ƒƒ}nd}|jd |ƒdS(s¤ Return or set the turtle's speed.
 
        Optional argument:
        speed -- an integer in the range 0..10 or a speedstring (see below)
 
        Set the turtle's speed to an integer value in the range 0 .. 10.
        If no argument is given: return current speed.
 
        If input is a number greater than 10 or smaller than 0.5,
        speed is set to 0.
        Speedstrings  are mapped to speedvalues in the following way:
            'fastest' :  0
            'fast'    :  10
            'normal'  :  6
            'slow'    :  3
            'slowest' :  1
        speeds from 1 to 10 enforce increasingly faster animation of
        line drawing and turtle turning.
 
        Attention:
        speed = 0 : *no* animation takes place. forward/back makes turtle jump
        and likewise left/right make the turtle turn instantly.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.speed(3)
        itfastesti
tfastitnormalitslowitslowestgà?g%@RfN(R§RR°RàRN(RÉRftspeeds((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRfs)   cGsÀ|ršt|ƒ}|dkr/|d}}n4|dkrJ|\}}n|dkrc|}}n|j|ƒ}|j|ƒ}|jd|d|ƒn"|j|jƒ|j|jƒfSdS(sšReturn or set the pencolor and fillcolor.
 
        Arguments:
        Several input formats are allowed.
        They use 0, 1, 2, or 3 arguments as follows:
 
        color()
            Return the current pencolor and the current fillcolor
            as a pair of color specification strings as are returned
            by pencolor and fillcolor.
        color(colorstring), color((r,g,b)), color(r,g,b)
            inputs as in pencolor, set both, fillcolor and pencolor,
            to the given value.
        color(colorstring1, colorstring2),
        color((r1,g1,b1), (r2,g2,b2))
            equivalent to pencolor(colorstring1) and fillcolor(colorstring2)
            and analogously, if the other input format is used.
 
        If turtleshape is a polygon, outline and interior of that polygon
        is drawn with the newly set colors.
        For mor info see: pencolor, fillcolor
 
        Example (for a Turtle instance named turtle):
        >>> turtle.color('red', 'green')
        >>> turtle.color()
        ('red', 'green')
        >>> colormode(255)
        >>> color((40, 80, 120), (160, 200, 240))
        >>> color()
        ('#285078', '#a0c8f0')
        iiiiROR;N(R™RãRNRåRR(RÉR.Rtpcolortfcolor((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR2*s      cGsO|r;|j|ƒ}||jkr(dS|jd|ƒn|j|jƒSdS(sZ Return or set the pencolor.
 
        Arguments:
        Four input formats are allowed:
          - pencolor()
            Return the current pencolor as color specification string,
            possibly in hex-number format (see example).
            May be used as input to another color/pencolor/fillcolor call.
          - pencolor(colorstring)
            s is a Tk color specification string, such as "red" or "yellow"
          - pencolor((r, g, b))
            *a tuple* of r, g, and b, which represent, an RGB color,
            and each of r, g, and b are in the range 0..colormode,
            where colormode is either 1.0 or 255
          - pencolor(r, g, b)
            r, g, and b represent an RGB color, and each of r, g, and b
            are in the range 0..colormode
 
        If turtleshape is a polygon, the outline of that polygon is drawn
        with the newly set pencolor.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.pencolor('brown')
        >>> tup = (0.2, 0.8, 0.55)
        >>> turtle.pencolor(tup)
        >>> turtle.pencolor()
        '#33cc8c'
        NRO(RãRRNRå(RÉR.R2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyROXs cGsO|r;|j|ƒ}||jkr(dS|jd|ƒn|j|jƒSdS(s] Return or set the fillcolor.
 
        Arguments:
        Four input formats are allowed:
          - fillcolor()
            Return the current fillcolor as color specification string,
            possibly in hex-number format (see example).
            May be used as input to another color/pencolor/fillcolor call.
          - fillcolor(colorstring)
            s is a Tk color specification string, such as "red" or "yellow"
          - fillcolor((r, g, b))
            *a tuple* of r, g, and b, which represent, an RGB color,
            and each of r, g, and b are in the range 0..colormode,
            where colormode is either 1.0 or 255
          - fillcolor(r, g, b)
            r, g, and b represent an RGB color, and each of r, g, and b
            are in the range 0..colormode
 
        If turtleshape is a polygon, the interior of that polygon is drawn
        with the newly set fillcolor.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.fillcolor('violet')
        >>> col = turtle.pencolor()
        >>> turtle.fillcolor(col)
        >>> turtle.fillcolor(0, .5, 0)
        NR;(RãRRNRå(RÉR.R2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR;}s cCs|jdtƒdS(sÑMakes the turtle visible.
 
        Aliases: showturtle | st
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.hideturtle()
        >>> turtle.showturtle()
        tshownN(RNR¥(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRe¡s cCs|jdtƒdS(sYMakes the turtle invisible.
 
        Aliases: hideturtle | ht
 
        No argument.
 
        It's a good idea to do this while you're in the
        middle of a complicated drawing, because hiding
        the turtle speeds up the drawing observably.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.hideturtle()
        R-N(RNR¦(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRC®scCs|jS(sãReturn True if the Turtle is shown, False if it's hidden.
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.hideturtle()
        >>> print turtle.isvisible():
        False
        (R(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRG¾s
c    Ks6i
|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd    6|j    d
6}|ps|sz|St
|t ƒr’|}ni}|j |ƒi}x|D]}||||<q²W|j rì|j jd |fƒnt}d|kr|j|dkrt}qnd|krxt
|dtƒrY|j|dfƒ|d<n|j|dkrxt}qxnd|kr£|j|dkr£t}q£n|r¶|jƒnd|krÒ|d|_nd|krî|d|_nd|kr
|d|_nd|krVt
|dtƒrF|j|dfƒ|d<n|d|_nd|krr|d|_nd|krŽ|d|_nd|krÔ|d}t
|ttfƒrÈ||f}n||_nd    |krð|d    |_nd|kr |d|_nd
|kr(|d
|_    n|jƒd S( síReturn or set the pen's attributes.
 
        Arguments:
            pen -- a dictionary with some or all of the below listed keys.
            **pendict -- one or more keyword-arguments with the below
                         listed keys as keywords.
 
        Return or set the pen's attributes in a 'pen-dictionary'
        with the following key/value pairs:
           "shown"      :   True/False
           "pendown"    :   True/False
           "pencolor"   :   color-string or color-tuple
           "fillcolor"  :   color-string or color-tuple
           "pensize"    :   positive number
           "speed"      :   number in range 0..10
           "resizemode" :   "auto" or "user" or "noresize"
           "stretchfactor": (positive number, positive number)
           "outline"    :   positive number
           "tilt"       :   number
 
        This dictionary can be used as argument for a subsequent
        pen()-call to restore the former pen-state. Moreover one
        or more of these attributes can be provided as keyword-arguments.
        This can be used to set several pen attributes in one statement.
 
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
        >>> turtle.pen()
        {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
        'pencolor': 'red', 'pendown': True, 'fillcolor': 'black',
        'stretchfactor': (1,1), 'speed': 3}
        >>> penstate=turtle.pen()
        >>> turtle.color("yellow","")
        >>> turtle.penup()
        >>> turtle.pen()
        {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
        'pencolor': 'yellow', 'pendown': False, 'fillcolor': '',
        'stretchfactor': (1,1), 'speed': 3}
        >>> p.pen(penstate, fillcolor="green")
        >>> p.pen()
        {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
        'pencolor': 'red', 'pendown': True, 'fillcolor': 'green',
        'stretchfactor': (1,1), 'speed': 3}
        R-RPROR;RQRfRYt stretchfactorRRRiRNN(RRRRRRRRR!R RÌtdictR%RùR¼R¦R¥RÄRãt_newLineR°R¯Rg(    RÉRNtpendictt_pdtpt_p_bufR¶tnewLinetsf((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRNÊsz. 
 
 
 
 
 
 
 
                          
    cCsdS(s/dummy method - to be overwritten by child classN((RÉtusePos((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR0?    scCsdS(s/dummy method - to be overwritten by child classN((RÉR¾tforced((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRgA    scCsdS(s/dummy method - to be overwritten by child classN((RÉR.((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRåC    scCsdS(s/dummy method - to be overwritten by child classN((RÉR.((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRãE    sN(!RÚRÛRÜR¼RRR§RYRQRRRPRFRfR2ROR;ReRCRGRNR¥R0R¦RgRåRãRpRoRURMR6RgRE(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRs8               &    .    %    $             u         t _TurtleImagecBs eZdZd„Zd„ZRS(s6Helper class: Datatype to store Turtle attributes
    cCs#||_d|_|j|ƒdS(N(RŸR§R—t    _setshape(RÉRŸt
shapeIndex((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRU    s        cCse|j}||_|jdko6|j|jknr?dS|jdkoc|j|jknrldS|jdkrŽ|j|jƒn3|jdkrÁx!|jD]}|j|ƒq§Wn|j|j|_|jdkrõ|jƒ|_nl|jdkr#|j|jdjƒ|_n>|jdkrag|j|jD]}|jƒ^qC|_ndS(NR­RR®RH(simagespolygon(    RŸR;R—RÅRft_itemRTR‘R²(RÉR;RŸRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR:Z    s&        ))(RÚRÛRÜRR:(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR9Q    s    cBseZdZgZd8edededd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d8d8d „Zd „Zd„Zd„Zd„Zd8d„Zd8d8d8d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd8d„Zd„Zd„Zd„Z e!d„Z"d8d „Z#d!„Z$d"„Z%d8d#„Z&d$„Z'e(d%d9d)„Z)d*„Z*d+„Z+d,„Z,d-„Z-d.„Z.e.Z/d/„Z0d0„Z1d8d1„Z2d2d8d3„Z3d2d8d4„Z4d2d8d5„Z5d6„Z6d7„Z7eZ8RS(:svAnimation part of the RawTurtle.
    Puts RawTurtle upon a TurtleScreen and provides tools for
    its animation.
    RcR–RšcCs¿t|tƒr||_n·t|tƒrX|tjkrLtjj|ƒn||_nzt|ttfƒrÂxbtjD]"}|j    |krw||_PqwqwWt|ƒ|_tjj|jƒnt
d|ƒ‚|j}t j ||j ƒƒtj |ƒ|jj|ƒ|jƒ|_t||ƒ|_d|_t|_d|_|_||_t|_|jƒ|_|jg|_|jg|_g|_ ||_!t"|ƒ|_#|j$ƒdS(Nsbad cavas argument %s(%RÌt_ScreenRŸRRtscreensRURRRMR¬RôRRRRÐRatdrawingLineItemR9RR§t_polyR¦t _creatingPolyt    _fillitemt    _fillpathRt_hidden_from_screentcurrentLineItemRút currentLineRât
stampItemst_undobuffersizeR·RùRg(RÉtcanvasRcR–RšRŸ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRw    s@                                   cCs<tj|ƒtj|ƒ|jƒ|jƒ|jƒdS(såDelete the turtle's drawings and restore its default values.
 
        No argument.
,
        Delete the turtle's drawings from the screen, re-center the turtle
        and set variables to the default values.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.position()
        (0.00,-22.00)
        >>> turtle.heading()
        100.0
        >>> turtle.reset()
        >>> turtle.position()
        (0.00,0.00)
        >>> turtle.heading()
        0.0
        N(RôRXRRt_clearRíRg(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRXŸ    s
 
 
cCs+|dkrd|_nt|ƒ|_dS(s¢Set or disable undobuffer.
 
        Argument:
        size -- an integer or None
 
        If size is an integer an empty undobuffer of given size is installed.
        Size gives the maximum number of turtle-actions that can be undone
        by the undo() function.
        If size is None, no undobuffer is present.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.setundobuffer(42)
        N(R§RùR·(RÉtsize((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR`¸    s  cCs |jdkrdS|jjƒS(s¾Return count of entries in the undobuffer.
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> while undobufferentries():
        ...     undo()
        iN(RùR§R¿(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRnË    s    cCs›d|_|_x!|jD]}|jj|ƒqW|jjƒ|_g|_|j    rn|jj
|j ƒn|jg|_|j ƒ|j |jƒdS(sDelete all of pen's drawingsN(R§RBRCRâRŸRfRaRERFRRURúR0R`RH(RÉRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRJØ    s        
cCs|jƒ|jƒdS(sgDelete the turtle's drawings from the screen. Do not move turtle.
 
        No arguments.
 
        Delete the turtle's drawings from the screen. Do not move turtle.
        State and position of the turtle as well as drawings of other
        turtles are not affected.
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.clear()
        N(RJRg(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR.æ    s
cCsd|jjƒ|jjdkr#dSt|jƒdkr`|jj|j|j|j|jƒndS(Nii(    RŸRëRÏR™RFRcRERR(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRìõ    s  cCs§|j}|jdkrdS|jdkr\|jƒ|jƒ|jƒ|j|jƒnG|jƒ|jdkr£x|jƒD]}|jƒq‚W|jƒndS(s&Perform a Turtle-data update.
        iNi(    RŸRÎRìRíRgRiRÈRÏR$(RÉRŸR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRgý    s    
 
 
 
cCs|jj||ƒS(smTurns turtle animation on/off and set delay for update drawings.
 
        Optional arguments:
        n -- nonnegative  integer
        delay -- nonnegative  integer
 
        If n is given, only each n-th regular screen update is really performed.
        (Can be used to accelerate the drawing of complex graphics.)
        Second arguments sets delay value (see RawTurtle.delay())
 
        Example (for a Turtle instance named turtle):
        >>> turtle.tracer(8, 25)
        >>> dist = 2
        >>> for i in range(200):
        ...     turtle.fd(dist)
        ...     turtle.rt(90)
        ...     dist += 2
        (RŸR#(RÉtflagR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR#
scCs|jj|ƒS(N(RŸRå(RÉR.((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRå$
scCs|jj|ƒS(N(RŸRã(RÉR.((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRã'
sc    Cst|tƒr|Sy|\}}}Wntdt|ƒƒ‚nX|jjdkrg|||fD]}td|ƒ^qh\}}}nd|ko§dknoád|koÃdknoád|koßdknsýtdt|ƒƒ‚nd|||fS(s,Convert colortriples to hexstrings.
        sbad color arguments: %sgð?gào@iiÿsbad color sequence: %ss #%02x%02x%02x(RÌR¯R¬RŸRÉRà(RÉR.R¢RáRâRÇ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_cc*
s8TcCsI|j}|j|jƒ|j}d|_d|_t|ƒ}||_||_||_t||jjƒ|_|jj    |ƒ|j
|jjj }|dkrº|j ƒ|j_ nr|dkrè|j|j
djƒ|j_ nD|dkr,g|j
|jjjD]}|j ƒ^q |j_ n|jƒ|_|jƒ|S(sCreate and return a clone of the turtle.
 
        No argument.
 
        Create and return a clone of the turtle with same position, heading
        and turtle properties.
 
        Example (for a Turtle instance named mick):
        mick = Turtle()
        joe = mick.clone()
        R­RRHR®N(RŸR0RRR§RR9R;RÐRURÅR—RTR<R‘R²RaRERg(RÉRŸRtqtttypeRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR19
s,                               " 5
cCs\|dkr|jjS||jjƒkr>td|ƒ‚n|jj|ƒ|jƒdS(sßSet turtle shape to shape with given name / return current shapename.
 
        Optional argument:
        name -- a string, which is a valid shapename
 
        Set turtle shape to shape with given name or, if name is not given,
        return name of current shape.
        Shape with name must exist in the TurtleScreen's shape dictionary.
        Initially there are the following polygon shapes:
        'arrow', 'turtle', 'circle', 'square', 'triangle', 'classic'.
        To learn about how to deal with shapes see Screen-method register_shape.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.shape()
        'arrow'
        >>> turtle.shape("turtle")
        >>> turtle.shape()
        'turtle'
        sThere is no shape named %sN(R§RR;RŸRR¬R:Rg(RÉRß((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRca
s  
c    Csß||ko"|ko"dknrF|j\}}|||jfS|dk    r||dkrm||f}q§||f}n+|dk    rž|jd|f}n    |j}|dkr¿|j}n|jddd|d|ƒdS(sPSet/return turtle's stretchfactors/outline. Set resizemode to "user".
 
        Optinonal arguments:
           stretch_wid : positive number
           stretch_len : positive number
           outline  : positive number
 
        Return or set the pen's attributes x/y-stretchfactors and/or outline.
        Set resizemode to "user".
        If and only if resizemode is set to "user", the turtle will be displayed
        stretched according to its stretchfactors:
        stretch_wid is stretchfactor perpendicular to orientation
        stretch_len is stretchfactor in direction of turtles orientation.
        outline determines the width of the shapes's outline.
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.resizemode("user")
        >>> turtle.shapesize(5, 5, 12)
        >>> turtle.shapesize(outline=8)
        iRYR#R.RRN(R§RR!RN(RÉt stretch_widt stretch_lenRRR.((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRd|
s'         cCsK| |j|j}|tjddtj}|jddd|ƒdS(sZRotate the turtleshape to point in the specified direction
 
        Optional argument:
        angle -- number
 
        Rotate the turtleshape to point in the direction specified by angle,
        regardless of its current tilt-angle. DO NOT change the turtle's
        heading (direction of movement).
 
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.shape("circle")
        >>> turtle.shapesize(5,2)
        >>> turtle.settiltangle(45)
        >>> stamp()
        >>> turtle.fd(50)
        >>> turtle.settiltangle(-45)
        >>> stamp()
        >>> turtle.fd(50)
        g€f@iRYR#RiN(RþRøRÒR‰RN(RÉRÓRi((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR_¢
scCs.|j dtj|j}||j|jS(s£Return the current tilt-angle.
 
        No argument.
 
        Return the current tilt-angle, i. e. the angle between the
        orientation of the turtleshape and the heading of the turtle
        (its direction of movement).
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.shape("circle")
        >>> turtle.shapesize(5,2)
        >>> turtle.tilt(45)
        >>> turtle.tiltangle()
        g€f@(R RÒR‰RøRþRý(RÉRi((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRj»
scCs|j||jƒƒdS(sÌRotate the turtleshape by angle.
 
        Argument:
        angle - a number
 
        Rotate the turtleshape by angle from its current tilt-angle,
        but do NOT change the turtle's heading (direction of movement).
 
        Examples (for a Turtle instance named turtle):
        >>> turtle.shape("circle")
        >>> turtle.shapesize(5,2)
        >>> turtle.tilt(30)
        >>> turtle.fd(50)
        >>> turtle.tilt(30)
        >>> turtle.fd(50)
        N(R_Rj(RÉRÓ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRiÍ
sc
Cs°|j}|j\}}|j\}}t|||j|jƒ}dt|ƒ|\}}g|D]G\}}    |||||    |j|| |||    |jf^qeS(slComputes transformed polygon shapes from a shape
        according to current position and heading.
        gð?(RŸRúRüR RORNR(
RÉRµRŸtp0tp1te0te1R~RÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_polytrafoà
s    cCs}|j}|j|jj}|j}|jj}|jrÇ|jdkrÇ|jdkrÇt    |_
|j }|dkrÙ|j dkr”d}|}nø|j dkrÏt d|jdƒ}}|j}d}    n3|j dkr|j\}}|j}|j}    ng|D] \}
} ||
|| f^q    }tj|    ƒtj|    ƒ} } g|D]1\}
} | |
| | | |
| | f^qU}|j|ƒ}|j|j}}|j||d|d    |d
|d tƒqy|d krþ|j||j|ƒqy|d kry|j\}}|j}xŸt||ƒD]‹\}\}}}g|D] \}
} ||
|| f^qN}|j|ƒ}|j||d|j|ƒd    |j|ƒd
|d tƒq2Wqyn²|j
rÔdS|dkr|j|dddfddƒnn|d kr1|j||j|jdj ƒn?|d krpx0|D]%}|j|dddfddƒqDWnt|_
dS(spManages the correct rendering of the turtle with respect to
        its shape, resizemode, stretch and tilt etc.iR­R™iR"g@R#R:RRRpR[RR®NRºRH(ii(ii(ii(ii(ii(ii(RŸRÅRR;R—R<RRÏRÎR¦RDR²RtmaxRRR!R RÒR‹R|RVRRR]R¥R”RútzipRM(RÉRŸRcROttitemttshapeRPtlxtlyRjRÇRÈtt0tt1tfctocReRµ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRíì
s^         '                          ->      %-&     "   &c Cs    |j}|j|jj}|j}|j}|dkr©|jƒ}|jdkrdd}|}nø|jdkrŸtd|j    dƒ}}|j    }d}    n3|jdkrÒ|j
\}}|j }|j }    ng|D] \}
} ||
|| f^qÙ}t j|    ƒt j|    ƒ} } g|D]1\}
} | |
| | | |
| | f^q%}|j|ƒ}|j|j}}|j||d|d    |d
|d tƒn6|d krÝ|jd ƒ}|j||j|ƒn|dkrßg}x'|D]}|jƒ}|j|ƒqöWt|ƒ}|j
\}}|j }xŸt||ƒD]‹\}\}}}g|D] \}
} ||
|| f^qi}|j|ƒ}|j||d|j|ƒd    |j|ƒd
|d tƒqMWn|jj|ƒ|jjd|fƒ|S(sÅStamp a copy of the turtleshape onto the canvas and return its id.
 
        No argument.
 
        Stamp a copy of the turtle shape onto the canvas at the current
        turtle position. Return a stamp_id for that stamp, which can be
        used to delete it by calling clearstamp(stamp_id).
 
        Example (for a Turtle instance named turtle):
        >>> turtle.color("blue")
        >>> turtle.stamp()
        13
        >>> turtle.fd(50)
        R­R™iR"g@iR#R:RRRpR[RRºR®Rh(RŸRÅRR;R—R²RTRRWRRR!R RÒR‹R|RVRRR]R¥R‘R”RúRURÄRXRMRGRùR¼(RÉRŸRcRORZtstitemRPR[R\RjRÇRÈR]R^R_R`telementReRµ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRh# sV                               ->         %-#cCs||jkret|tƒrBx1|D]}|jj|ƒq%Wn|jj|ƒ|jj|ƒnd|f}|j}||jkrdS|jj|ƒ}|jj|ƒ||j    krØ|j    d|j
|_    n|jj |j    d|j
dgƒdS(s9does the work for clearstamp() and clearstamps()
        RhNi( RGRÌRÄRŸRfRðRùR¹tindexRºR¸tinsertR§(RÉtstampidtsubitemRetbufRc((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt _clearstamp_ s      cCs|j|ƒ|jƒdS(sDDelete stamp with given stampid
 
        Argument:
        stampid - an integer, must be return value of previous stamp() call.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.color("blue")
        >>> astamp = turtle.stamp()
        >>> turtle.fd(50)
        >>> turtle.clearstamp(astamp)
        N(RhRg(RÉRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR/u s cCsn|dkr|j}n)|dkr5|j| }n |j|}x|D]}|j|ƒqIW|jƒdS(sìDelete all or first/last n of turtle's stamps.
 
        Optional argument:
        n -- an integer
 
        If n is None, delete all of pen's stamps,
        else if n > 0 delete first n stamps
        else if n < 0 delete last n stamps.
 
        Example (for a Turtle instance named turtle):
        >>> for i in range(8):
        ...     turtle.stamp(); turtle.fd(30)
        ...
        >>> turtle.clearstamps(2)
        >>> turtle.clearstamps(-2)
        >>> turtle.clearstamps()
        iN(R§RGRhRg(RÉRèttoDeleteRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR0„ s     c Csf|j|j|jt|jtƒf}|j}d|j|||j|j    |j
|jƒ|j ff}|j r‡|j j |ƒn|j}|jrÐ|jdkrÐ||}|d|jd|d|jd}dt|ddd|j|jƒ}|d|}    x„td|ƒD]s}
|
dkr=t} nt} ||    |
|_|jr‹|j|j||jf|j|j| ƒn|jƒq"W|jrÐ|j|jddfd    d
d |jƒqÐn|jrì|j    j|ƒnt|jtƒr|jj|ƒn||_|jr6|jj|ƒnt|j    ƒd krX|jƒn|jƒd S(s™Move the pen to the point end, thereby drawing a line
        if pen is down. All other methodes for turtle movement depend
        on this one.
        tgoiiigà?igš™™™™™ñ?gð?R:RºRpi*N(ii(ii(RRRRÌRCRÝRŸRúRERFRœRâRùR¼RRÎRNROR°R˜R¥R¦RcR?RgRURAR@R™R0( RÉRtgo_modesRŸt
undo_entrytstarttdifftdiffsqtnhopstdeltaRèR[((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR  sR            
(*                            cCs|\}}}}|\}}}}    |\}
} } } |j}t|j|ƒdkr`dGHn|
|_| |_| ddgkrd}n|}|j|
| d|d|ƒg|jD]-}|| kr¹|j|ƒdkr¹|^q¹}x+|D]#}|j|ƒ|jj    |ƒqóW|}|j
rQ|j dkrQ||}|d|j d    |d|j d    }dt|dd
d |j
|j
ƒ}|d |}x{td|ƒD]j}|dkrÍt}nt}||||_|r|j|j||jf|||ƒn|jƒq²W|rQ|j|jddfddd|ƒqQn||_|jr¯t|jƒdkrˆ|jjƒn|jgkr¯t|_d|_q¯n|    r÷|jgkrÕd|_d GHq÷|jdk    r÷|jjƒq÷n|jƒdS(s)Reverse a _goto. Used for undo()
        gà?s$undogoto: HALLO-DA-STIMMT-WAS-NICHT!iRºR:RpRµiiigš™™™™™ñ?gð?sUnwahrscheinlich in _undogoto!N(ii(ii(ii(ii(RŸRRúRERFRcRâR—RfRðRRÎRNROR°R˜R¥R¦R?RgRAR™R@R½R§RC(RÉtentrytoldtnewRktcoodatatdrawingtpctpstfillingtcLItcLR›RâRŸtusepcRšttodeleteRmRnRoRpRqRèR[((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    _undogotoÕ sd                !  
(*                       cCsó|jr(|jjd||jfƒn||j9}|jj|ƒ}|jj}|dkrÜ|jdkrÜd|j}dtt    |ƒ|ƒ}d||}x6t
|ƒD]%}|jj|ƒ|_|j ƒq°Wn||_|j ƒdS(s&Turns pen clockwise by angle.
        trotiig@gð?N( RùR¼RþRüR×RŸRÎRR°RR˜Rg(RÉRÓt    neworientRîtanglevelRRqRë((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR s           cCs t|jƒdkrb|jj|j|j|j|jƒ|jjƒ|_|jj    |jƒn|jj|jdt
ƒg|_|rœ|j g|_ndS(s¶Closes current line item and starts a new one.
           Remark: if current line became too long, animation
           performance (via _drawline) slowed down considerably.
        iR[N( R™RFRŸRcRERRRaRâRUR¥Rú(RÉR7((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR0( s    cCsmt|jtƒ}|dkr"|S|j}d}}|r‡t|jƒdkr‡|jj|j|jd|jƒd|jf}q‡n|rÝ|jj    ƒ|_|j
j |jƒ|j g|_d|jf}|j ƒnd|_|_|jr_|dkr$|d    kr\|jj|ƒq\q_|d
krC|jj|ƒq_|jjd||gƒn|jƒdS( s§Call fill(True) before drawing a shape to fill, fill(False) when done.
 
        Optional argument:
        flag -- True/False (or 1/0 respectively)
 
        Call fill(True) before drawing the shape you want to fill,
        and  fill(False) when done.
        When used without argument: return fillstate (True if filling,
        False else)
 
        Example (for a Turtle instance named turtle):
        >>> turtle.fill(True)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.fill(False)
        iR:tdofillt    beginfillR
N(((((RÌRCRÝR§RŸR™R]RBRRTRâRURúR0RùR¼Rg(RÉRLRyRŸtentry1tentry2((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR:8 s2     
 
        cCs|jtƒdS(s˜Called just before drawing a shape to be filled.
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.begin_fill()
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.end_fill()
        N(R:R¥(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR*k scCs|jtƒdS(s™Fill the shape drawn after the call begin_fill().
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.begin_fill()
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.left(90)
        >>> turtle.forward(100)
        >>> turtle.end_fill()
        N(R:R¦(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR7} scGsÅ|stt|ttfƒrF|j|ƒ}|jt|jdƒ}q«|j}|s«|jt|jdƒ}q«n7|dkrœ|jt|jdƒ}n|j|ƒ}t|j    dƒr |j    j
|j ||ƒ}|j j |ƒ|jrÁ|jjd|fƒqÁn´|jƒ}|jrD|jjdgƒt|j_nzT|jƒdkrf|jƒn|jƒ|j|ƒ|j|ƒ|jdƒWd|j|ƒX|jrÁt|j_ndS(sÑDraw a dot with diameter size, using color.
 
        Optional arguments:
        size -- an integer >= 1 (if given)
        color -- a colorstring or a numeric color tuple
 
        Draw a circular dot with diameter size, using color.
        If size is not given, the maximum of pensize+4 and 2*pensize is used.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.dot()
        >>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50)
        it_dotR5R
R"iN(RÌR¯RÄRãRRWRR§thasattrRŸR†RúRâRURùR¼RNR¥R»RYRERPRQROR<R¦(RÉRKR2ReRN((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR5 s:               
      cCs`|jj|j||||jƒ\}}|jj|ƒ|jr\|jjd|fƒn|S(s)Performs the writing for write()
        twri(RŸR}RúRRâRURùR¼(RÉRwRxRuReR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR} s     RHtArialiR'cCs“|jr+|jjdgƒt|j_n|jt|ƒ|jƒ|ƒ}|rw|jƒ\}}|j||ƒn|jrt    |j_ndS(s÷Write text at the current turtle position.
 
        Arguments:
        arg -- info, which is to be written to the TurtleScreen
        move (optional) -- True/False
        align (optional) -- one of the strings "left", "center" or right"
        font (optional) -- a triple (fontname, fontsize, fonttype)
 
        Write text - the string representation of arg - at the current
        turtle position according to align ("left", "center" or right")
        and with the given font.
        If move is True, the pen is moved to the bottom-right corner
        of the text. By default, move is False.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.write('Home = ', True, align="center")
        >>> turtle.write((0,0), True)
        R
N(
RùR¼R¥R»R}R¯R°RSR]R¦(RÉtargtmoveRxRuRRÇRÈ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRqÌ s    !    cCs|jg|_t|_dS(sStart recording the vertices of a polygon.
 
        No argument.
 
        Start recording the vertices of a polygon. Current turtle position
        is first point of polygon.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.begin_poly()
        N(RúR@R¥RA(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR+é s cCs t|_dS(s7Stop recording the vertices of a polygon.
 
        No argument.
 
        Stop recording the vertices of a polygon. Current turtle position is
        last point of polygon. This will be connected with the first point.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.end_poly()
        N(R¦RA(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR8÷ s cCs |jdk    rt|jƒSdS(sÔReturn the lastly recorded polygon.
 
        No argument.
 
        Example (for a Turtle instance named turtle):
        >>> p = turtle.get_poly()
        >>> turtle.register_shape("myFavouriteShape", p)
        N(R@R§RÄ(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR= s
cCs|jS(s˜Return the TurtleScreen object, the turtle is drawing  on.
 
        No argument.
 
        Return the TurtleScreen object, the turtle is drawing  on.
        So TurtleScreen-methods can be called for that object.
 
        Example (for a Turtle instance named turtle):
        >>> ts = turtle.getscreen()
        >>> ts
        <turtle.TurtleScreen object at 0x0106B770>
        >>> ts.bgcolor("pink")
        (RŸ(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR? scCs|S(sUReturn the Turtleobject itself.
 
        No argument.
 
        Only reasonable use: as a function to return the 'anonymous turtle':
 
        Example:
        >>> pet = getturtle()
        >>> pet.fd(50)
        >>> pet
        <turtle.Turtle object at 0x0187D810>
        >>> turtles()
        [<turtle.Turtle object at 0x0187D810>]
        ((RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR@! scCs|jjƒdS(s² Returns the width of the turtle window.
 
        No argument.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.window_width()
        640
        i(RŸR©(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR'9 s    cCs|jjƒdS(s³ Return the height of the turtle window.
 
        No argument.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.window_height()
        480
        i(RŸR©(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR&D s    cCs|jj|ƒS(sDSet delay value which determines speed of turtle animation.
        (RŸR(RÉR((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRiO sicCs-|jj|jj|||ƒ|jƒdS(s¹Bind fun to mouse-click event on this turtle on canvas.
 
        Arguments:
        fun --  a function with two arguments, to which will be assigned
                the coordinates of the clicked point on the canvas.
        num --  number of the mouse-button defaults to 1 (left mouse button).
        add --  True or False. If True, new binding will be added, otherwise
                it will replace a former binding.
 
        Example for the anonymous turtle, i. e. the procedural way:
 
        >>> def turn(x, y):
        ...     left(360)
        ...
        >>> onclick(turn)  # Now clicking into the turtle will turn it.
        >>> onclick(None)  # event-binding will be removed
        N(RŸR†RR<Rg(RÉR€RÒR…((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRJV scCs-|jj|jj|||ƒ|jƒdS(sÿBind fun to mouse-button-release event on this turtle on canvas.
 
        Arguments:
        fun -- a function with two arguments, to which will be assigned
                the coordinates of the clicked point on the canvas.
        num --  number of the mouse-button defaults to 1 (left mouse button).
 
        Example (for a MyTurtle instance named joe):
        >>> class MyTurtle(Turtle):
        ...     def glow(self,x,y):
        ...             self.fillcolor("red")
        ...     def unglow(self,x,y):
        ...             self.fillcolor("")
        ...
        >>> joe = MyTurtle()
        >>> joe.onclick(joe.glow)
        >>> joe.onrelease(joe.unglow)
 
        Clicking on joe turns fillcolor red, unclicking turns it to
        transparent.
        N(RŸR‡RR<Rg(RÉR€RÒR…((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRLk scCs#|jj|jj|||ƒdS(s’Bind fun to mouse-move event on this turtle on canvas.
 
        Arguments:
        fun -- a function with two arguments, to which will be assigned
               the coordinates of the clicked point on the canvas.
        num -- number of the mouse-button defaults to 1 (left mouse button).
 
        Every sequence of mouse-move-events on a turtle is preceded by a
        mouse-click event on that turtle.
 
        Example (for a Turtle instance named turtle):
        >>> turtle.ondrag(turtle.goto)
 
        Subsequently clicking and dragging a Turtle will move it
        across the screen thereby producing handdrawings (if pen is
        down).
        N(RŸRˆRR<(RÉR€RÒR…((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRK„ scCs|jdkrdS|dkrV|\}}|j| ||jƒ|jjƒ}n5|dkr||d}|j|ƒn|dkr˜|j|ƒnó|dkrÑ|d}|jj|ƒ|j    j
|ƒnº|dkr|d}|jj |dddfd    d
d d
ƒny|d kr[|d}d|_ |_ |jj|ƒ|j    j
|ƒn0|d kr‹tj||dƒ|jjƒndS(s2Does the main part of the work for undo()
        NRRhiRjRˆR5R‚R:RºRRRƒRN(swrisdot(ii(ii(ii(RùR§RRþR½R/R~RŸRfRâRðR]RBRCRRN(RÉtactionR´RÓtdegPAUtdummyRaRe((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_undo™ s6   
 
 
 
 cCsŠ|jdkrdS|jjƒ}|d}|d}|dkrvxA|rr|jƒ}|j|d|dƒqEWn|j||ƒdS(s±undo (repeatedly) the last turtle action.
 
        No argument.
 
        undo (repeatedly) the last turtle action.
        Number of available undo actions is determined by the size of
        the undobuffer.
 
        Example (for a Turtle instance named turtle):
        >>> for i in range(4):
        ...     turtle.fd(50); turtle.lt(80)
        ...
        >>> for i in range(8):
        ...     turtle.undo()
        ...
        NiiR
(RùR§R½R(RÉReRŒR´((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRm¸ s
 
      N(R‰isnormal(9RÚRÛRÜR>R§R¼RRXR`RnRJR.RìRgR#RåRãRMR1RcRdR_RjRiRVRíRhRhR/R0RR~RR¥R0R:R*R7R5R}R¦RqR+R8R=R?R@R>R'R&RiRJRLRKRRmRl(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRp    sl%                                            ( &                    7    <             5    A      3         3    
                                     cCs%tjdkrtƒt_ntjS(s‡Return the singleton screen object.
    If none exists at the moment, create a new one and return it,
    else return the existing one.N(R    t_screenR§R=(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRÛ sR=cBspeZd Zd ZedZd„Zededededd„Zd„Z    d„Z
d    „Z d
„Z RS( R"cCsñtjdkrKtƒt_|_|jjtjƒ|jj|jƒntjdkrít    d}t    d}t    d}t    d}t    d}t    d}|jj
||||ƒ|jj ƒt_t j |tjƒ|j||||ƒndS(NRpRR‘R’R“R”(R=t_rootR§R3R"t_titleRAt_destroyRR¼R8R9RRR (RÉRpRR‘R’R“R”((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRé s
 
 
 
 
 
RpRR“R”c    Cst|jdƒsdS|jjƒ}|jjƒ}t|tƒrld|koZdknrl||}n|dkr‰||d}nt|tƒrÁd|ko¯dknrÁ||}n|dkrÞ||d}n|jj||||ƒ|jƒdS(s  Set the size and position of the main window.
 
        Arguments:
        width: as integer a size in pixels, as float a fraction of the screen.
          Default is 50% of screen.
        height: as integer the height in pixels, as float a fraction of the
          screen. Default is 75% of screen.
        startx: if positive, starting position in pixels from the left
          edge of the screen, if negative from the right edge
          Default, startx=None is to center window horizontally.
        starty: if positive, starting position in pixels from the top
          edge of the screen, if negative from the bottom edge
          Default, starty=None is to center window vertically.
 
        Examples (for a Screen instance named screen):
        >>> screen.setup (width=200, height=200, startx=0, starty=0)
 
        sets window to 200x200 pixels, in upper left of screen
 
        >>> screen.setup(width=.75, height=0.5, startx=None, starty=None)
 
        sets window to 75% of screen by 50% of screen and centers
        R=Niii(    R‡R‘RCRERÌR¯R§R=R%(RÉRpRR;R<Rptsh((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR ÿ s+  +  cCs/tjdk    r"tjj|ƒn|t_dS(sqSet title of turtle-window
 
        Argument:
        titlestring -- a string, to appear in the titlebar of the
                       turtle graphics window.
 
        This is a method of Screen-class. Not available for TurtleScreen-
        objects.
 
        Example (for a Screen instance named screen):
        >>> screen.title("Welcome to the turtle-zoo!")
        N(R=R‘R§R"R’(RÉt titlestring((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR"'s cCsV|j}|tjkr?dt_dt_dt_dt_ntt_    |j
ƒdS(N( R‘R=R§R    RÑRRR¥RRéR@(RÉtroot((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR“8s                     cCs|jƒdS(s~Shut the turtlegraphics window.
 
        Example (for a TurtleScreen instance named screen):
        >>> screen.bye()
        N(R“(RÉ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRBscsW‡fd†}ˆj|ƒtdr*dSy tƒWntk
rRtdƒnXdS(slGo into mainloop until the mouse is clicked.
 
        No arguments.
 
        Bind bye() method to mouseclick on TurtleScreen.
        If "using_IDLE" - value in configuration dictionary is False
        (default value), enter mainloop.
        If IDLE with -n switch (no subprocess) is used, this value should be
        set to True in turtle.cfg. In this case IDLE's mainloop
        is active also for the client script.
 
        This is a method of the Screen-class and not available for
        TurtleScreen instances.
 
        Example (for a Screen instance named screen):
        >>> screen.exitonclick()
 
        csˆjƒdS(s&Screen.bye() with two dummy-parametersN(R(RÇRÈ(RÉ(sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytexitGracefully]sR¡Ni(RJR¼RvtAttributeErrortexit(RÉR—((RÉsU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRJs 
  N( RÚRÛR§R‘RR¼R’RR R"R“RR(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR=ã s
    '        
   cBs8eZdZdZdZedededd„ZRS(sÀRawTurtle auto-creating (scrolled) canvas.
 
    When a Turtle object is created or a function derived from some
    Turtle method is called a TurtleScreen object is automatically created.
    RcR–Ršc    CsGtjdkrtƒt_ntj|tjd|d|d|ƒdS(NRcR–Rš(R    RR§RRR(RÉRcR–Rš((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRrs N(RÚRÛRÜR§RÑRR¼R(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR    is cCs%tjdkrtƒt_ntjS(s5Create the 'anonymous' turtle if not already present.N(R    RÑR§(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_getpenscCs%tjdkrtƒt_ntjS(s-Create a TurtleScreen if not already present.N(R    RR§R(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt
_getscreen…stturtle_docstringdictcCsRi}x+tD]#}d|}t|ƒj||<q Wx+tD]#}d|}t|ƒj||<q;Wtd|dƒ}tg|jƒD]%}|jdƒdtkr…|^q…ƒ}|j    dƒx>|d D]2}|j    d    t
|ƒƒ|j    d
||ƒqËW|d}|j    d    t
|ƒƒ|j    d ||ƒ|j    d ƒ|j ƒd S(s±Create and write docstring-dictionary to file.
 
    Optional argument:
    filename -- a string, used as filename
                default value is turtle_docstringdict
 
    Has to be called explicitly, (not used by the turtle-graphics classes)
    The docstring dictionary will be written to the Python script <filname>.py
    It is intended to serve as a template for translation of the docstrings
    into different languages.
    s_Screen.sTurtle.s%s.pyRPR¨isdocsdict = {
 
iÿÿÿÿs%s :
s        """%s
""",
 
s        """%s
"""
 
s}
N( t_tg_screen_functionsR®RÜt_tg_turtle_functionsR©RïRéRt _alias_listRqtreprR«(R±tdocsdictt
methodnameR¶R²RÇRé((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyRt‹s&  
 
( 
 cCsndi|jƒd6}t|ƒ}|j}x;|D]3}y||t|ƒj_Wq3d|GHq3Xq3WdS(sñRead in docstrings from lang-specific docstring dictionary.
 
    Transfer docstrings, translated to lang, from a dictionary-file
    to the methods of classes Screen and Turtle and - in revised form -
    to the corresponding functions.
    s!turtle_docstringdict_%(language)sRœsBad docstring-entry: %sN(R°t
__import__R¡R®tim_funcRÜ(tlangtmodnametmoduleR¡R¶((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytread_docstrings­s      sCannot find docsdict fors;Unknown Error when trying to import %s-docstring-dictionaryc
CsÙd}}t|ƒtjkr1|j}d}n |}d}t|ƒtjtjgkrÏyg|jj}t|jj    ||!ƒ}|jj    ||!}|j
p¢g}tt d„|ƒƒ}dgt |ƒt |ƒ|}t d„||ƒ}    |jj d@rF|    jd|jj    |ƒ|jd|jj    |ƒ|d7}n|jj d@r|    jd    |jj    |ƒ|jd    |jj    |ƒnd
j|    ƒ}d |}d
j|ƒ}d |}WqÏqÏXn||fS( s9Get strings describing the arguments for the given objectRºiicSsdt|ƒS(Ns=%s(R (Rß((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt<lambda>ÜscSs||S(N((RŠtdflt((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyR©ÞsiRis**s, s(%s)(RãRät
MethodTypeR¤Råt
LambdaTypet    func_codet co_argcountRÝt co_varnamest func_defaultstmapR™tco_flagsRUR(
tobtargText1targText2tfobt    argOffsettcountertitems2trealArgstdefaultstitems1((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytgetmethparlistÊs:
         ! 
cCseddl}|dkrdStd}|jd|dƒ}|jd|ƒ}|jd|ƒ}|S(s<To reduce docstrings from RawTurtle class for functions
    iÿÿÿÿNRžs%s.Rºs  \(.+ %s\):t:(treR§R¼treplacetcompiletsub(tdocstrR¿t
turtlenamet    newdocstrtparexp((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_turtle_docreviseîs  
cCseddl}|dkrdStd}|jd|dƒ}|jd|ƒ}|jd|ƒ}|S(s?To reduce docstrings from TurtleScreen class for functions
    iÿÿÿÿNR s%s.Rºs  \(.+ %s\):R¾(R¿R§R¼RÀRÁRÂ(RÃR¿t
screennameRÅRÆ((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt_screen_docreviseús  
s_Screen.Rºs>>>>>>s6def %(key)s%(pl1)s: return _getscreen().%(key)s%(pl2)sR¶tpl1tpl2sTurtle.s3def %(key)s%(pl1)s: return _getpen().%(key)s%(pl2)st__main__cCstƒrtƒntƒdS(N(RFRURM(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt    switchpen$s    
cCsëtƒttƒtƒtdƒtƒtdƒx“tdƒD]…}|dkr_tdƒnx(tdƒD]}t    dƒt
dƒqlW|dkr­t dƒtd    ƒntƒt    d
ƒtƒq@Wtdƒt d ƒtt ƒtƒt dƒt    dƒt dƒt    dƒt d ƒtƒtd dƒtddƒt dƒx<tdƒD].}t    dƒt
dƒt    dƒt dƒqXWttƒtdƒx<tdƒD].}t    dƒt
dƒt    dƒt dƒq«Wtd    ƒdS(sDemo of old turtle.py - moduleidiiiiiiZtmarooniiR˜i´t
startstartRmtrediN(RXR#R¥RoR)R6RpR˜R:R<RHR2R¦RWRq(RšRë((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytdemo1*sX
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cCsOtdƒtƒtdƒttddƒƒtddƒd}tdƒx(tdƒD]}tƒt    |dƒqXWt
dƒxt ƒr–t ƒqƒWt ƒtdƒtd    ƒd}td
ƒtdƒtd ƒxtd d ƒD]Œ}|dkrtƒtd    d|dd|ƒnx(tdƒD]}t|ƒtdƒq+W|d7}tdƒttƒddƒqæWtƒtdƒtƒtdƒtdƒtƒtddƒtdƒtdƒx?tdƒD]1}t    ddƒtdƒtdƒtdƒq×Wtdƒtdƒtƒtdƒtƒtdƒtƒ}|jdƒtƒ}|jdƒ|jdƒ|j ƒ|jdƒ|jdƒ|jƒ|jddƒ|jdƒ|j ƒ|jdƒ|jddƒ|jdƒ|jdƒtt|ƒƒd}xŽ|j|ƒdkr­|jdƒ|jd ƒ|j|j|ƒƒ|jdƒ|d!dkr |j!ƒ|j!ƒtƒn|d7}q W|j
d"d#d-d&d'ƒ|jd(ƒ|jdƒd)„}t"j#dƒx!t ƒr|j ƒ|j ƒqúW|jdƒ|j
d*d#d.ƒ|j$|dƒd,S(/sDemo of some new features.iiig@iZii
swait a moment...iÿtgreeni´iþÿÿÿiiixi iFiRÐtyellowii2RR"ii(itbluetorangeig @g333333ã?isCAUGHT! RuR‰tboldRxRWR˜cSstƒtƒdS(N(RR(RñRò((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytbaba´ss   Click me!tCourierN(sArialiRÖ(RØi RÖ(%RfRgRQR\RkR4RZR˜RÍR-RqRnRmRXRIRROR*R;R9R7RURMR2R:RcR@RYR    RHRoRAR6RhttimetsleepRJ(R RëtlaengeRšttriRR¾R×((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pytdemo2_s°
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
           
 
 
 
 
 
        
 (LRÜt_vertTkinterR RäRÒRÙtostos.pathRRRtcopyRt _tg_classesRRžt _tg_utilitiest_math_functionst__all__RŸR§R¥R¦R¼R¸RÃRÄR RàRêRðRøR RRR4R3tobjectRFt    ExceptionR«R¬R R·RRôRR9RR
RR=R    R RšR›RtR¨t    _LANGUAGEt ImportErrorR½RÇRÉR¢R®RÊRËtdefstrRvRuRÚRÍRÑRÝR(((sU/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/turtle.pyt<module>es     
       !
 
       %    4    
    c    ÿJ    /&ÿÿÿÿÿÂÿÿÿÿk    †         "    
 
    $           &   &              5    b