Python Forum
Help with basic kivy framework
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with basic kivy framework
#1
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020