I am remaking the turtle module (fishcode is the name of my remake) to my taste, but I came across a error I couldn't fix.
TypeError: function() argument 1 must be code, not str
I've searched the error up and found the error here on stackoverflow, but those didn't help.
Code of fishcode module:
import turtle
class Window(turtle.Screen):
def __init__(self):
turtle.Screen.__init__(self)
Code of .py file that tests the module:
import fishcode
bob = fishcode.Window()
So I get the error at importing fishcode I expect it to make a turtle screen.