Python Forum

Full Version: Help with basic kivy framework
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm new at this so please be patient with me. I'm studying a kivy intro tutorial and I'm trying to build a basic app. I keep getting an error message like this when I try and run the code.
TypeError: object.__init__() takes exactly one argument (the instance to initialize).

Here is where the part of the code this error comes up:

class ConnectPage(GridLayout):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.cols = 2
I can't figure out what I'm doing wrong. Can somebody help. I also made sure I made the proper indention so if it dosen't come out when I press the submit button, just letting you know I did indent after the def method.