spacepaste

  1.  
  2. import xbmcgui
  3. class MyClass(xbmcgui.WindowXMLDialog):
  4. def __init__(self, myparam):
  5. print("myparam", myparam)
  6. if (__name__ == '__main__'):
  7. myclass = MyClass("hello")
  8. Error is:
  9. Error Type: <type 'exceptions.TypeError'>
  10. Error Contents: function takes at least 2 arguments (1 given)
  11. Traceback (most recent call last):
  12. File "C:\Kodi\addons\script.test\resources\lib\Main.py", line 8, in __init__
  13. myclass = MyClass("hello")
  14. TypeError: function takes at least 2 arguments (1 given)
  15.