class documentation

Observable

Method __init__ Undocumented
Method addObserver Add an observer
Method clearChanged Clear the change flag
Method countObservers Return the number of Observers
Method deleteObserver Remove an observer
Method deleteObservers Remove all observers
Method hasChanged Somethig has changed?
Method notifyObservers If 'changed' indicates that this object has changed, notify all its observers, then call clearChanged(). Each observer has its update() called with two arguments: this observable object and the generic 'handlers'.
Method setChanged Set the change flag
Instance Variable changed Undocumented
Instance Variable obs Undocumented

Inherited from Synchronization:

Instance Variable mutex Undocumented
def clearChanged(self):

Clear the change flag

def countObservers(self) -> int:

Return the number of Observers

def deleteObservers(self):

Remove all observers

def hasChanged(self) -> int:

Somethig has changed?

def notifyObservers(self, handlers: typing.Any = None):

If 'changed' indicates that this object has changed, notify all its observers, then call clearChanged(). Each observer has its update() called with two arguments: this observable object and the generic 'handlers'.

def setChanged(self):

Set the change flag

changed: int =

Undocumented

obs: list[Observer] =

Undocumented