In Pythonista I created a new script using the "Scene with Layers" template. I then attempted to define my own custom layer class using the below.
class MyLayer (Layer):
def draw(self):
super(MyLayer,self).draw()
My hope was to allow the base class to draw then add some custom rendering on top .
I changed the code in the template scene setup method so it created instances of MyLayer instead of Layer to test it.
When I run I get the following error.
"TypeError: draw() takes exactly 1 argument (2 given)"
Any idea what I'm doing wrong?