2018-08-25, 13:17
Hello,
I would like to inherit the class listitem, and i have some problem with python
I would like to inherit the class listitem, and i have some problem with python
Error Message :python:
class User(xbmcgui.ListItem):
def __init__(self, name, label2="", iconImage="", thumbnailImage="", path="", window= None, userdata=None):
super(User, self).__init__(label=name, label2="", iconImage="", thumbnailImage="", path="")
self.Base = window
self.Name = name
self.UserData = userdata
us = User(msg.username, window = self.Base, userdata= msg.userdata)
Can help me please ?python:TypeError: 'userdata' is an invalid keyword argument for this function