Cleanning up a code

Could someone help me? I keep getting a TypeError: object .init() takes exactly one argument (instance to initialize). Here’s the code.

class ConnectPage(GridLayout):
def init(self, **kwargs):
self.cols = 2
Can someone show me what’s wrong with this code and show me how to clean it up?

You’d have to show where you’re calling it. I think you’re doing this:


But you’d have to do this:

cp = ConnectPage()

Also, you can post code like this:

# code here

Or like this:

# code here