2019-09-09, 21:04
I'm using script that create custom window from windowxml, and that works fine in python2 based kodi.
But in Python3 I have this issue:
I tried with super, super() and nothing helps (I comment them out, but included in snipe)
I would like to fix this (without importing fancy-helping-convert-modules like kodi65 and kodi-six) just pure python solution.
class ConnectionWizard(xbmcgui.WindowXML):
def __init__(self, xml_file, resource_path, skin, skin_res):
xbmcgui.WindowXML.__init__(self, xml_file, resource_path, skin, skin_res, False)
#super(ConnectionWizard, self).__init__(self, xml_file, resource_path, skin, skin_res)
#super().__init__(self, xml_file, resource_path, skin, skin_res, False)
But in Python3 I have this issue:
TypeError: object.__init__() takes no arguments
I tried with super, super() and nothing helps (I comment them out, but included in snipe)
I would like to fix this (without importing fancy-helping-convert-modules like kodi65 and kodi-six) just pure python solution.