2023-09-13, 19:23
Hey all,
Sorry, I have a Python syntax question. I am trying to wrap my head around the SetArt.
I have an addon with the following code:
iconImage='DefaultAddSource.png'
listItem = xbmcgui.ListItem(name, iconImage=iconImage, thumbnailImage=iconImage)
Understandably, it throws this error:
listItem = xbmcgui.ListItem(name, iconImage=iconImage, thumbnailImage=iconImage)
TypeError: 'iconImage' is an invalid keyword argument for this function
Can someone kindly let me know the correct syntax for those lines?
Thanks!!!
Ken
Sorry, I have a Python syntax question. I am trying to wrap my head around the SetArt.
I have an addon with the following code:
iconImage='DefaultAddSource.png'
listItem = xbmcgui.ListItem(name, iconImage=iconImage, thumbnailImage=iconImage)
Understandably, it throws this error:
listItem = xbmcgui.ListItem(name, iconImage=iconImage, thumbnailImage=iconImage)
TypeError: 'iconImage' is an invalid keyword argument for this function
Can someone kindly let me know the correct syntax for those lines?
Thanks!!!
Ken