Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
lib64
›
python3.12
›
turtledemo
›
__pycache__
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ sorting_animate.cpython-312.pyc
← Back
� �֦i� � �� � d Z ddl� ddlZ G d� de� Z G d� de� Zd� Zd � Zd � Z d� Z d� Zdd �Zd� Z d� Zd� Zd� Zd� Zd� Zd� ZdZdZedk( r e� Z e� yy)a� sorting_animation.py A minimal sorting algorithm animation: Sorts a shelf of 10 blocks using insertion sort, selection sort and quicksort. Shelves are implemented using builtin lists. Blocks are turtles with shape "square", but stretched to rectangles by shapesize() --------------------------------------- To exit press space button --------------------------------------- � )�*Nc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�Blockc �� � || _ t j | dd�� | j � | j |dz dd� | j d� | j � y )N�squareF)�shape�visibleg �?� �black)�size�Turtle�__init__�pu� shapesize� fillcolor�st)�selfr s �3/usr/lib64/python3.12/turtledemo/sorting_animate.pyr zBlock.__init__ sM � ��� �����H�e��<���� ����t�c�z�3��*����w����� � c �&