Completed
Push — master ( 2706de...b04b3a )
by Jerome
01:50
created

Interface.__init__()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
import abc
2
import logging
3
4
5
class Interface:
6
    __metaclass__ = abc.ABCMeta
7
8
    def __init__(self, logger=logging.getLogger(__name__)):
9
        self.logger = logger
10
11
    def info(self, msg, *args, **kwargs):
12
        self.logger.log(logging.INFO, "Informing user with: " + str(msg), *args, **kwargs)
13
14
    def handle(self, event, *args, **kwargs):
15
        self.logger.log(logging.INFO, "Handling event : " + str(event), *args, **kwargs)
16
17
    def set_ui_element(self, ui_element, msg, *args, **kwargs):
18
        pass
19