import xbmcgui class MyClass(xbmcgui.WindowXMLDialog): def __init__(self, myparam): print("myparam", myparam) if (__name__ == '__main__'): myclass = MyClass("hello") Error is: Error Type: Error Contents: function takes at least 2 arguments (1 given) Traceback (most recent call last): File "C:\Kodi\addons\script.test\resources\lib\Main.py", line 8, in __init__ myclass = MyClass("hello") TypeError: function takes at least 2 arguments (1 given)