ACIL FM
Dark
Refresh
Current DIR:
/opt/alt/python313/lib64/python3.13/turtledemo
/
opt
alt
python313
lib64
python3.13
turtledemo
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
bytedesign.py
4.16 MB
chmod
View
DL
Edit
Rename
Delete
chaos.py
951 B
chmod
View
DL
Edit
Rename
Delete
clock.py
3.24 MB
chmod
View
DL
Edit
Rename
Delete
colormixer.py
1.31 MB
chmod
View
DL
Edit
Rename
Delete
forest.py
2.91 MB
chmod
View
DL
Edit
Rename
Delete
fractalcurves.py
3.41 MB
chmod
View
DL
Edit
Rename
Delete
lindenmayer.py
2.39 MB
chmod
View
DL
Edit
Rename
Delete
minimal_hanoi.py
2.02 MB
chmod
View
DL
Edit
Rename
Delete
nim.py
6.36 MB
chmod
View
DL
Edit
Rename
Delete
paint.py
1.27 MB
chmod
View
DL
Edit
Rename
Delete
peace.py
1.05 MB
chmod
View
DL
Edit
Rename
Delete
penrose.py
3.31 MB
chmod
View
DL
Edit
Rename
Delete
planet_and_moon.py
2.77 MB
chmod
View
DL
Edit
Rename
Delete
rosette.py
1.33 MB
chmod
View
DL
Edit
Rename
Delete
round_dance.py
1.76 MB
chmod
View
DL
Edit
Rename
Delete
sorting_animate.py
4.95 MB
chmod
View
DL
Edit
Rename
Delete
tree.py
1.38 MB
chmod
View
DL
Edit
Rename
Delete
turtle.cfg
160 B
chmod
View
DL
Edit
Rename
Delete
two_canvases.py
1.09 MB
chmod
View
DL
Edit
Rename
Delete
yinyang.py
835 B
chmod
View
DL
Edit
Rename
Delete
__init__.py
314 B
chmod
View
DL
Edit
Rename
Delete
__main__.py
15.01 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/alt/python313/lib64/python3.13/turtledemo/paint.py
#! /opt/alt/python313/bin/python3.13 """ turtle-example-suite: tdemo_paint.py A simple event-driven paint program - left mouse button moves turtle - middle mouse button changes color - right mouse button toggles between pen up (no line drawn when the turtle moves) and pen down (line is drawn). If pen up follows at least two pen-down moves, the polygon that includes the starting point is filled. ------------------------------------------- Play around by clicking into the canvas using all three mouse buttons. ------------------------------------------- To exit press STOP button ------------------------------------------- """ from turtle import * def switchupdown(x=0, y=0): if pen()["pendown"]: end_fill() up() else: down() begin_fill() def changecolor(x=0, y=0): global colors colors = colors[1:]+colors[:1] color(colors[0]) def main(): global colors shape("circle") resizemode("user") shapesize(.5) width(3) colors=["red", "green", "blue", "yellow"] color(colors[0]) switchupdown() onscreenclick(goto,1) onscreenclick(changecolor,2) onscreenclick(switchupdown,3) return "EVENTLOOP" if __name__ == "__main__": msg = main() print(msg) mainloop()
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply