class override
#1
Hi every body,
I want to override the class method of Player.play()

How can I do this?

is it right way:

PHP Code:
class MyPlayer(xbmc.Player):
    
def __init__(selfcore):
        
xbmc.Player(core

and can I override the method: onPlayBackStarted
Reply
#2
Syntax can be found in a post of mine from way back

http://forum.kodi.tv/showthread.php?tid=154103
Reply
#3
xbmc.Player is a C++ class exposed to Python as a new-style class, so it can be subclassed as a regular new-style class. Read respective Python docs/books/tutorials how to do it.
Reply

Logout Mark Read Team Forum Stats Members Help
class override0