Package papyon :: Package event :: Module client :: Class ClientEventInterface

Class ClientEventInterface

source code

        object --+    
                 |    
BaseEventInterface --+
                     |
                    ClientEventInterface

Interface allowing the user to get notified about the Client events

Instance Methods
 
__init__(self, client)
Initializer
source code
 
on_client_state_changed(self, state)
Called when the state of the Client changes.
source code
 
on_client_error(self, type, error)
Called when an error occurs in the Client.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, client)
(Constructor)

source code 

Initializer

Parameters:
  • client (Client) - the client we want to be notified for its events
Overrides: object.__init__

on_client_state_changed(self, state)

source code 

Called when the state of the Client changes.

Parameters:

on_client_error(self, type, error)

source code 

Called when an error occurs in the Client.

Parameters: