# examples derived from
# Turtle Geometry: The Computer as a Medium for Exploring Mathematics
# by Harold Abelson and Andrea diSessa
# p. 96 - 98

#from wxTurtleHilbert import turtleHilbert
#import wxTurtleHilbert
from wxTurtleCurves import turtleCurves

# wrapper for any additional drawing routines
# that need to know about each other
# it also appears this is necessary in order to use the
# classes from the import above unless the name binding
# is changed as I did below with turtleHilbert=turtleHilbert
#class turtleWrapper(wxTurtleHilbert.turtleHilbert):
class turtleWrapper(turtleCurves):
    pass

# three ways to get basically the same effect
#def drawMain(dc_local, w, turtleWrapper=turtleWrapper):
def drawMain(dc_local, w, turtleHilbert=turtleCurves):
#def drawMain(dc_local, w, turtleHilbert=turtleWrapper):
    t = turtleHilbert(dc_local)
    #t = turtleWrapper(dc_local)
    t.cls()
    t.moveTo(50, 50)
    t.right(90)
    t.hilbert(5, 6, 1)
