Пример #1
0
 def __init__(self, event_handler, command_parser):
     self.handler = UIHandler(event_handler, command_parser)
Пример #2
0
class UIParser(object):
    def __init__(self, event_handler, command_parser):
        self.handler = UIHandler(event_handler, command_parser)

    def parse(self, user_input):
        self.handler.handle(user_input)