generated from mwc/lab_names
	Initial commit
This commit is contained in:
		
							
								
								
									
										19
									
								
								test_shapes.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								test_shapes.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
# test_shapes.py
 | 
			
		||||
# --------------
 | 
			
		||||
# By MWC contributors
 | 
			
		||||
 | 
			
		||||
from turtle import *
 | 
			
		||||
from shapes import triangle, rectangle
 | 
			
		||||
 | 
			
		||||
def flyto(x, y):
 | 
			
		||||
    penup()
 | 
			
		||||
    goto(x, y)
 | 
			
		||||
    pendown()
 | 
			
		||||
 | 
			
		||||
flyto(-100, 0)
 | 
			
		||||
triangle(100)
 | 
			
		||||
flyto(100, 0)
 | 
			
		||||
rectangle(20, 80)
 | 
			
		||||
input()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user